diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2013-12-11 14:54:58 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2013-12-11 14:54:58 +0000 |
commit | 6e8706afba9793284052a890088b3bc025f5c9c9 (patch) | |
tree | edf67ffb5b2cb69d6ea2978a9889e1500650c068 /usr.bin/calendar | |
parent | e892b3fe36cbf5aff5352b4e1f6dbde630cead67 (diff) | |
download | src-test2-6e8706afba9793284052a890088b3bc025f5c9c9.tar.gz src-test2-6e8706afba9793284052a890088b3bc025f5c9c9.zip |
Notes
Diffstat (limited to 'usr.bin/calendar')
-rw-r--r-- | usr.bin/calendar/calcpp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/calendar/calcpp.c b/usr.bin/calendar/calcpp.c index 413739b361f6..6a15683ecbe6 100644 --- a/usr.bin/calendar/calcpp.c +++ b/usr.bin/calendar/calcpp.c @@ -133,7 +133,7 @@ tokenscpp(char *buf, char *string) s = p; while(!isspace((unsigned char)*p)) p++; - strncpy(string, s, MAXPATHLEN); + strlcpy(string, s, MAXPATHLEN); return(T_DEFINE); } else if ((p = strstr(buf, "#ifndef")) != NULL) { p += 8; |