[project @ 2004-03-21 23:44:53 by jmb]

Add a couple of assertions.

svn path=/import/netsurf/; revision=649
This commit is contained in:
John Mark Bell 2004-03-21 23:44:53 +00:00
parent 7f2d86b2f6
commit 083d96493e

View File

@ -687,10 +687,12 @@ struct HttpPost *fetch_post_convert(struct form_successful_control *control)
mimetype = fetch_mimetype(control->value);
#ifdef riscos
temp = strrchr(control->value, '.') + 1;
assert(temp);
leafname = xcalloc(strlen(temp), sizeof(char));
__unixify_std(temp, leafname, strlen(temp), 0xfff);
#else
leafname = strrchr(control->value, '/') + 1;
assert(leafname);
#endif
curl_formadd(&post, &last,
CURLFORM_COPYNAME, control->name,