diff options
Diffstat (limited to 'usr.bin/unifdef')
-rw-r--r-- | usr.bin/unifdef/unifdef.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/unifdef/unifdef.c b/usr.bin/unifdef/unifdef.c index 47a8d2a759d..89df19740aa 100644 --- a/usr.bin/unifdef/unifdef.c +++ b/usr.bin/unifdef/unifdef.c @@ -47,7 +47,7 @@ static const char copyright[] = #include "version.h" - "@(#) $Author: jmc $\n" + "@(#) $Author: miod $\n" "@(#) $URL: http://dotat.at/prog/unifdef $\n" ; @@ -838,7 +838,7 @@ parseline(void) if (ferror(input)) err(2, "can't read %s", filename); /* append the missing newline at eof */ - strcpy(tline + len, newline); + strlcpy(tline + len, newline, sizeof(tline) - len); cp += strlen(newline); linestate = LS_START; } else { |