Hi! There is also missing check for the return from malloc(). And given that we do not return the pointer to the array and that the cound is at most 6, what about changing the malloc() to array on stack?
I.e. - char *found = (char *) malloc(count); - memset(found, 0, count); + char found[count]; -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list