On Fri, May 23, 2008 at 00:59:26 +0300, Petri Latvala 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) { Right, thanks. Martin