# HG changeset patch # User Adam Chlipala # Date 1408141556 14400 # Node ID 4ad46302f659e93b17cec2869a079b578ce05f2e # Parent 229a299d739d89fc07781c7f6318e46247787bd1 Don't use uw_malloc() or equivalent in generating error messages while parsing HTTP request diff -r 229a299d739d -r 4ad46302f659 .hgignore --- a/.hgignore Fri Aug 15 07:11:31 2014 +0000 +++ b/.hgignore Fri Aug 15 18:25:56 2014 -0400 @@ -66,6 +66,8 @@ ltmain.sh missing +tests/*.db + syntax: regexp ^Makefile$ diff -r 229a299d739d -r 4ad46302f659 src/c/urweb.c --- a/src/c/urweb.c Fri Aug 15 07:11:31 2014 +0000 +++ b/src/c/urweb.c Fri Aug 15 18:25:56 2014 -0400 @@ -1043,12 +1043,12 @@ 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; }