$Log$
+ Revision 590.58 2002/01/13 04:06:33 ajc
+ * Repaired the problems I created when moving the_mime_parser()'s variables
+ from the stack to the heap. (Hint: sizeof(char *) is 4, not 4096)
+
Revision 590.57 2002/01/11 15:46:57 error
* Allow users to move/copy messages between personal rooms
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
/* Learn interesting things from the headers */
strcpy(header, "");
do {
- ptr = memreadline(ptr, buf, sizeof buf);
+ ptr = memreadline(ptr, buf, SIZ);
if (ptr >= content_end) {
goto end_parser;
}
extract_key(boundary, header, "boundary");
strcpy(header, "");
}
- if ((strlen(header) + strlen(buf) + 2) < sizeof(header))
+ if ((strlen(header) + strlen(buf) + 2) < SIZ)
strcat(header, buf);
} while ((strlen(buf) > 0) && (*ptr != 0));
userdata,
dont_decode);
}
- ptr = memreadline(ptr, buf, sizeof(buf));
+ ptr = memreadline(ptr, buf, SIZ);
part_start = ptr;
}
else {
*/
void lprintf(int loglevel, const char *format, ...) {
va_list arg_ptr;
- char buf[4096];
+ char buf[SIZ];
va_start(arg_ptr, format);
vsprintf(buf, format, arg_ptr);