[patch] add strlcpy and strlcat

Paulius Zaleckas paulius.zaleckas at teltonika.lt
Mon Feb 11 17:25:43 CET 2008


Updated patch. Added \n to the debug messages by strlcpy and strlcat.

Paulius Zaleckas wrote:
> This patch adds safe strcpy and strcat methods. Most of strcpy, strncpy, 
> strcat and strncat methods in gsmd was replaced by strlcpy and strlcat 
> methods. This also fixes couple potential bugs. I haven't noticed any 
> side effects, but additional testing would be very good.
> 
> Regards,
> Paulius Zaleckas
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strl.patch
Type: text/x-patch
Size: 12194 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/gsmd-devel/attachments/20080211/08518ce5/strl.bin


More information about the gsmd-devel mailing list