diff options
author | jlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2006-02-01 23:41:32 +0000 |
---|---|---|
committer | jlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2006-02-01 23:41:32 +0000 |
commit | e00b005a05b3be11f59ddf676914233d38626b38 (patch) | |
tree | 5972fd0b98a668d3675633405dc0260e708f8317 /cups/http-support.c | |
parent | ffb63008826760d766ebe7a553955ba3a7253eac (diff) | |
download | cups-e00b005a05b3be11f59ddf676914233d38626b38.tar.gz |
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@51 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/http-support.c')
-rw-r--r-- | cups/http-support.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cups/http-support.c b/cups/http-support.c index 3103007aa..1ad095bae 100644 --- a/cups/http-support.c +++ b/cups/http-support.c @@ -1,5 +1,5 @@ /* - * "$Id: http-support.c 5023 2006-01-29 14:39:44Z mike $" + * "$Id: http-support.c 5035 2006-02-01 14:58:46Z mike $" * * HTTP support routines for the Common UNIX Printing System (CUPS) scheduler. * @@ -1192,7 +1192,9 @@ http_copy_decode(char *dst, /* O - Destination buffer */ * or the end of the string. */ - for (ptr = dst, end = dst + dstsize - 1; *src && !strchr(term, *src); src ++) + for (ptr = dst, end = dst + dstsize - 1; + *src && (!term || !strchr(term, *src)); + src ++) if (ptr < end) { if (*src == '%' && decode) @@ -1285,5 +1287,5 @@ http_copy_encode(char *dst, /* O - Destination buffer */ /* - * End of "$Id: http-support.c 5023 2006-01-29 14:39:44Z mike $". + * End of "$Id: http-support.c 5035 2006-02-01 14:58:46Z mike $". */ |