STRNCPY

JONATHAN FORBES jonathan.forbes at canremote.uucp
Fri Dec 22 19:45:00 AEST 1989


If the source string is larger than the destination string, and you use 
strncpy(), then you will be overwriting memory in the destination 
string!  (assuming they both have the same amount of space allocated.)
---
 * Via ProDoor 3.1R 



More information about the Comp.lang.c mailing list