# HG changeset patch # User Adam Chlipala # Date 1298667488 18000 # Node ID eecbffc2b9076ac51216f8f94cc8f68e06ce1fe4 # Parent 58c9c039582a3a94763633ed2f5b670298e67ed3 Fix C jsify[String|Char] diff -r 58c9c039582a -r eecbffc2b907 src/c/urweb.c --- a/src/c/urweb.c Fri Feb 25 15:46:29 2011 -0500 +++ b/src/c/urweb.c Fri Feb 25 15:58:08 2011 -0500 @@ -1368,7 +1368,7 @@ if (isprint((int)c) || c >= 128) *s2++ = c; else { - sprintf(s2, "\\%3o", c); + sprintf(s2, "\\%03o", c); s2 += 4; } } @@ -1405,7 +1405,7 @@ if (isprint((int)c) || c >= 128) *s2++ = c; else { - sprintf(s2, "\\%3o", (unsigned char)c); + sprintf(s2, "\\%03o", (unsigned char)c); s2 += 4; } } @@ -1439,7 +1439,7 @@ if (isprint((int)c) || c >= 128) *s2++ = c; else { - sprintf(s2, "\\%3o", c); + sprintf(s2, "\\%03o", c); s2 += 4; } }