CHANGES IN CUPS V1.1.17
+ - Fixed a potential bug in the HTTP code which was
+ caused by servers sending the status line and
+ newline(s) in separate packets.
- User-defined classification strings are now printed
verbatim - previously the classification box would be
empty.
/*
- * "$Id: http.c,v 1.82.2.18 2002/10/22 15:54:34 mike Exp $"
+ * "$Id: http.c,v 1.82.2.19 2002/10/30 20:05:28 mike Exp $"
*
* HTTP routines for the Common UNIX Printing System (CUPS).
*
http->used -= length;
if (http->used > 0)
- memcpy(http->buffer, http->buffer + length, http->used);
+ memmove(http->buffer, http->buffer + length, http->used);
}
#ifdef HAVE_LIBSSL
else if (http->tls)
http->used += bytes;
bufend += bytes;
+ bufptr = bufend;
}
}
while (bufptr >= bufend && http->used < HTTP_MAX_BUFFER);
http->used -= bytes;
if (http->used > 0)
- memcpy(http->buffer, bufptr, http->used);
+ memmove(http->buffer, bufptr, http->used);
DEBUG_printf(("httpGets(): Returning \"%s\"\n", line));
return (line);
/*
- * End of "$Id: http.c,v 1.82.2.18 2002/10/22 15:54:34 mike Exp $".
+ * End of "$Id: http.c,v 1.82.2.19 2002/10/30 20:05:28 mike Exp $".
*/
/*
- * "$Id: ipp.c,v 1.55.2.19 2002/10/22 15:54:34 mike Exp $"
+ * "$Id: ipp.c,v 1.55.2.20 2002/10/30 20:05:29 mike Exp $"
*
* Internet Printing Protocol support functions for the Common UNIX
* Printing System (CUPS).
http->data_remaining -= bytes;
if (http->used > 0)
- memcpy(http->buffer, http->buffer + bytes, http->used);
+ memmove(http->buffer, http->buffer + bytes, http->used);
if (http->data_remaining == 0)
{
/*
- * End of "$Id: ipp.c,v 1.55.2.19 2002/10/22 15:54:34 mike Exp $".
+ * End of "$Id: ipp.c,v 1.55.2.20 2002/10/30 20:05:29 mike Exp $".
*/