summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2014-08-15 18:25:56 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2014-08-15 18:25:56 -0400
commit7640522fbd05667a5ebb2b2cbbabdc2c8bce5248 (patch)
tree418eae34180c7cfe3498e43da20c9ec2599fdcb0 /src
parent6c3c000ee821e37b0232afbb8c5733c573892ad2 (diff)
Don't use uw_malloc() or equivalent in generating error messages while parsing HTTP request
Diffstat (limited to 'src')
-rw-r--r--src/c/urweb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 1799d01e..43c73661 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -1043,12 +1043,12 @@ int uw_set_file_input(uw_context ctx, const char *name, uw_Basis_file f) {
int n = ctx->app->input_num(name);
if (n < 0) {
- uw_set_error(ctx, "Bad file input name %s", uw_Basis_htmlifyString(ctx, name));
+ uw_set_error(ctx, "Bad file input name");
return -1;
}
if (n >= ctx->app->inputs_len) {
- uw_set_error(ctx, "For file input name %s, index %d is out of range", uw_Basis_htmlifyString(ctx, name), n);
+ uw_set_error(ctx, "For file input name, index %d is out of range", n);
return -1;
}