Am 4/12/13 7:34 PM, schrieb Gabor Juhos:
strncpy makes more sense indeed. the code i copied used strdup, which failed as memory was not available at the time the code ranAny specific reason why you are using snprintf? If someone would call this with format characters in the 'name' that would cause weird things.