Mercurial > urweb
changeset 1429:eecbffc2b907
Fix C jsify[String|Char]
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 25 Feb 2011 15:58:08 -0500 |
parents | 58c9c039582a |
children | 36c0a1be3f5a |
files | src/c/urweb.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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; } }