On Thu, May 22, 2008 at 10:05:27PM +0200, Martin Godisch wrote: > - char *buf = (char *) mymalloc (sizeof (char) * (string_min + 1)); > + /* taken from v2.10 */ > + char *buf = (char *) malloc (sizeof (char) * (string_min + 1)); > + if (malloc == NULL) { > + fprintf(stderr, "Error allocating memory\n"); > + return; > + } I think you mean if (buf == NULL) { -- Petri Latvala
Attachment:
signature.asc
Description: Digital signature