diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2012-10-01 03:01:10 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2012-10-01 03:01:10 +0000 |
commit | 5a9febac19255ab8aea598449ea63bda730b2fe0 (patch) | |
tree | 1ca7eead0982e5b8893cadd8b2215d1ea96171f7 /systemv/lpstat.c | |
parent | 37e7e6e0b27c7db3be8e160e87a63fec66e0fcca (diff) | |
download | cups-5a9febac19255ab8aea598449ea63bda730b2fe0.tar.gz |
Merge changes from CUPS 1.7svn-r10629.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@3933 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'systemv/lpstat.c')
-rw-r--r-- | systemv/lpstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/systemv/lpstat.c b/systemv/lpstat.c index 20ef8bf00..fd36fe898 100644 --- a/systemv/lpstat.c +++ b/systemv/lpstat.c @@ -1437,7 +1437,7 @@ show_jobs(const char *dests, /* I - Destinations */ */ if (!strftime(date, sizeof(date), "%b %d %H:%M", jobdate)) - strcpy(date, "Unknown"); + strlcpy(date, "Unknown", sizeof(date)); _cupsLangPrintf(stdout, "%s;%s;%d;%s;%s", temp, username ? username : "unknown", @@ -1446,7 +1446,7 @@ show_jobs(const char *dests, /* I - Destinations */ else { if (!strftime(date, sizeof(date), "%c", jobdate)) - strcpy(date, "Unknown"); + strlcpy(date, "Unknown", sizeof(date)); if (ranking) _cupsLangPrintf(stdout, "%3d %-21s %-13s %8.0f %s", |