diff --git a/tools/mksyscall.c b/tools/mksyscall.c index 5444d2bd78..4ad0b874f1 100644 --- a/tools/mksyscall.c +++ b/tools/mksyscall.c @@ -158,7 +158,7 @@ static void get_fieldname(const char *arg, char *fieldname) */ pstart++; - strncpy(fieldname, pstart, MAX_PARMSIZE); + strncpy(fieldname, pstart, MAX_PARMSIZE - 1); return; } }