diff options
author | Adam Chlipala <adam@chlipala.net> | 2014-08-15 18:25:56 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2014-08-15 18:25:56 -0400 |
commit | 60fbd47e8c5695e3c418f96bab81cb0321359f30 (patch) | |
tree | 418eae34180c7cfe3498e43da20c9ec2599fdcb0 | |
parent | 1ef54c4722223a52f0b57bf0407cff39ebeb9f62 (diff) |
Don't use uw_malloc() or equivalent in generating error messages while parsing HTTP request
-rw-r--r-- | .hgignore | 2 | ||||
-rw-r--r-- | src/c/urweb.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -66,6 +66,8 @@ install-sh ltmain.sh missing +tests/*.db + syntax: regexp ^Makefile$ 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; } |