diff options
author | gad <gad@FreeBSD.org> | 2001-07-15 00:57:18 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2001-07-15 00:57:18 +0000 |
commit | a76650f907e7aac1ed9e37f599a75de0160b55e3 (patch) | |
tree | 11cdd2e087078213c8cf31addfce31b3ffbb5026 /usr.sbin/lpr/common_source/lp.h | |
parent | 75f5203b04d78ac555161bc219da58cbfeffefbd (diff) | |
download | FreeBSD-src-a76650f907e7aac1ed9e37f599a75de0160b55e3.zip FreeBSD-src-a76650f907e7aac1ed9e37f599a75de0160b55e3.tar.gz |
Replace three subtly-wrong calls to strncpy with calls to strlcpy, and
use (size_t) in a few places to avoid compile-time warnings on alpha.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/lpr/common_source/lp.h')
-rw-r--r-- | usr.sbin/lpr/common_source/lp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/common_source/lp.h b/usr.sbin/lpr/common_source/lp.h index 0adf0fd..a2e0bff 100644 --- a/usr.sbin/lpr/common_source/lp.h +++ b/usr.sbin/lpr/common_source/lp.h @@ -262,7 +262,7 @@ void ldump(const char *_nfile, const char *_datafile, int _copies); void lastprinter(void); int lockchk(struct printer *_pp, char *_slockf); char *lock_file_name(const struct printer *_pp, char *_buf, size_t _len); -void lpd_gettime(struct timespec *_tsp, char *_strp, int _strsize); +void lpd_gettime(struct timespec *_tsp, char *_strp, size_t _strsize); int nextprinter(struct printer *_pp, int *_error); const char *pcaperr(int _error); |