$Log$
+Revision 321.1 2001/12/26 23:11:25 ajc
+* Minor change to the upload handler, to fix graphics uploads
+
Revision 321.0 2001/12/26 05:28:02 ajc
* THIS IS 3.21
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
fprintf(stderr, " type = %s\n", cbtype);
fprintf(stderr, " length = %ld\n", (long)length);
- if ( (strlen(name) > 0) || (strlen(filename) > 0) ) {
+ if (length > 0) {
WC->upload = malloc(length);
if (WC->upload != NULL) {
WC->upload_length = length;
memcpy(WC->upload, content, length);
}
+ else {
+ fprintf(stderr, "malloc() failed: %s\n",
+ strerror(errno));
+ }
}
}