From 35c65576f71bb95f1bda5909c3a3cf32665a0dd4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 21 May 1998 23:50:16 +0000 Subject: 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) --- source3/printing/printing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/printing/printing.c') 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); -- cgit