diff options
author | Jeremy Allison <jra@samba.org> | 1998-11-11 23:31:37 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-11-11 23:31:37 +0000 |
commit | f9584f93be33ee69912708e6402809f47703a5d5 (patch) | |
tree | e5e2ce5e6cceed60a0a77915a1e500af2dc10edb /source3/printing | |
parent | f49b994aeb987ac87c3c49f35ae1e05a7004f75d (diff) | |
download | samba-f9584f93be33ee69912708e6402809f47703a5d5.tar.gz samba-f9584f93be33ee69912708e6402809f47703a5d5.tar.xz samba-f9584f93be33ee69912708e6402809f47703a5d5.zip |
J.F.'s latest printer fixes plus his gcc -picky fix for web/cgi.c
Jeremy.
(This used to be commit bd4e2972f50cafd932a5c915cdeeef7eedda07cc)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 2aecb580473..09a574c2c9a 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -323,8 +323,10 @@ static BOOL parse_lpq_lprng(char *line,print_queue_struct *buf,BOOL first) char *tokarr[LPRNG_MAXTOK]; char *cptr; int num_tok = 0; + pstring line2; - tokarr[0] = strtok(line," \t"); + pstrcpy(line2,line); + tokarr[0] = strtok(line2," \t"); num_tok++; while (((tokarr[num_tok] = strtok(NULL," \t")) != NULL) && (num_tok < LPRNG_MAXTOK)) { |