Mercurial > urweb
diff src/c/urweb.c @ 1429:eecbffc2b907
Fix C jsify[String|Char]
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 25 Feb 2011 15:58:08 -0500 |
parents | 22674ac8ebe6 |
children | 4a6f84092399 |
line wrap: on
line diff
--- 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; } }