On 09/16/2017 02:52 PM, Daniel Stenberg wrote:
On Mon, 11 Sep 2017, Ben Greear wrote:
This compiles w/out warnings on my Fedora-14 machine. I added braces and
replaced the , with semi colons.
What about this alternative take. Instead make the loop look like:
for(i = 0; len; len--) {
char c = *src++;
if(c == '"' || c == '\\' || !c) {
dst[i++] = '\\';
if(!c)
c = '0';
}
dst[i++] = c;
}
This compiles fine on my Fedora-14 machine.
Thanks,
Ben
--
Ben Greear <[email protected]>
Candela Technologies Inc http://www.candelatech.com
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html