/*
* HTML support functions for CUPS.
*
- * Copyright © 2020-2024 by OpenPrinting.
+ * Copyright © 2020-2026 by OpenPrinting.
* Copyright © 2007-2011 by Apple Inc.
* Copyright © 1997-2006 by Easy Software Products.
*
* Loop through the source string and copy...
*/
- for (dstptr = dst; *src && dstptr < dstend;)
+ for (dstptr = dst; *src && dstptr < dstend; src ++)
{
switch (*src)
{
*/
*dstptr++ = '+';
- src ++;
break;
case '&' :
*dstptr++ = '%';
*dstptr++ = hex[(*src & 255) >> 4];
*dstptr++ = hex[*src & 15];
- src ++;
}
break;
* Copy other characters literally...
*/
- *dstptr++ = *src++;
+ *dstptr++ = *src;
break;
}
}