summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2010-11-21 15:43:24 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2010-11-21 15:43:24 -0500
commit884fd425458185205bc2b6109a58028d0d881b53 (patch)
treedce4ca25e55d3b9903a007859753068db4756515 /src
parente85b176783c81cbbfbd35bbda989cd7703272378 (diff)
Fix a bug in C list unurlification
Diffstat (limited to 'src')
-rw-r--r--src/cjr_print.sml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cjr_print.sml b/src/cjr_print.sml
index e440a53d..99b42657 100644
--- a/src/cjr_print.sml
+++ b/src/cjr_print.sml
@@ -861,7 +861,7 @@ fun unurlify fromClient env (t, loc) =
space,
string "+=",
space,
- string "3, NULL) : ((!strncmp(request, \"Cons\", 4) && (request[4] == 0 ",
+ string "3, (*request == '/' ? *request++ = 0 : 0), NULL) : ((!strncmp(request, \"Cons\", 4) && (request[4] == 0 ",
string "|| request[4] == '/')) ? (request",
space,
string "+=",
@@ -895,7 +895,7 @@ fun unurlify fromClient env (t, loc) =
newline,
string ":",
space,
- string ("(uw_error(ctx, FATAL, \"Error unurlifying list\"), NULL))));"),
+ string ("(uw_error(ctx, FATAL, \"Error unurlifying list: %s\", request), NULL))));"),
newline],
string "}",
newline,