diff options
author | Jeremy Allison <jra@samba.org> | 1998-05-21 23:50:16 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-05-21 23:50:16 +0000 |
commit | 35c65576f71bb95f1bda5909c3a3cf32665a0dd4 (patch) | |
tree | 06f054d1c2acfe53a9d4e6affe8037d081ba2798 /source3/printing | |
parent | cbb1ef38b5bee7dddf4cfaad7ef69792ec003d8d (diff) | |
download | samba-35c65576f71bb95f1bda5909c3a3cf32665a0dd4.tar.gz samba-35c65576f71bb95f1bda5909c3a3cf32665a0dd4.tar.bz2 samba-35c65576f71bb95f1bda5909c3a3cf32665a0dd4.zip |
printing.c: Fixed overflow by one problem in LPRng.
reply.c: Fixed password length modifiers to always be done
is none-encrypted mode used. This fixes Samba for
people who are using non-encrypted passwords with
security=server.
Jeremy.
(This used to be commit 720b565349e3467bd81d6d863b9ac54237edd3cf)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 1ffe9d00a9..2b9c0c7199 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -286,12 +286,12 @@ static time_t LPRng_time(fstring tok[],int pos) { time_t jobtime; struct tm *t; - char tmp_time[9]; + fstring tmp_time; jobtime = time(NULL); /* default case: take current time */ t = localtime(&jobtime); t->tm_hour = atoi(tok[pos]); - StrnCpy(tmp_time,tok[pos],sizeof(tmp_time)); + fstrcpy(tmp_time,tok[pos]); t->tm_min = atoi(tmp_time+3); t->tm_sec = atoi(tmp_time+6); jobtime = mktime(t); |