diff options
Diffstat (limited to 'drivers/misc/lkdtm/fortify.c')
| -rw-r--r-- | drivers/misc/lkdtm/fortify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/lkdtm/fortify.c b/drivers/misc/lkdtm/fortify.c index 7615a02dfc47..5e66707e1180 100644 --- a/drivers/misc/lkdtm/fortify.c +++ b/drivers/misc/lkdtm/fortify.c @@ -98,7 +98,7 @@ static void lkdtm_FORTIFY_MEM_MEMBER(void) pr_info("trying to memcpy() past the end of a struct member...\n"); /* - * strncpy(target.a, src, 20); will hit a compile error because the + * memcpy(target.a, src, 20); will hit a compile error because the * compiler knows at build time that target.a < 20 bytes. Use a * volatile to force a runtime error. */ |
