Messages in this thread | | | From | David Howells <> | Subject | Re: [PATCH] fs: fix access beyond unterminated strings in prints | Date | Thu, 04 Oct 2018 16:05:00 +0100 |
| |
Amir Goldstein <amir73il@gmail.com> wrote:
> @@ -47,7 +47,7 @@ static struct dentry *coda_lookup(struct inode *dir, struct dentry *entry, unsig > int type = 0; > > if (length > CODA_MAXNAMLEN) { > - pr_err("name too long: lookup, %s (%*s)\n", > + pr_err("name too long: lookup, %s (%.*s)\n",
Use %pd instead?
David
| |