[patch] add strlcpy and strlcat
Marc Verwerft
marc.js.verwerft at gmail.com
Mon Feb 11 16:10:00 CET 2008
AFAIK, similar functions already exist in the glib (gtk.org) library.
They're called g_strlcpy and g_strlcat
See http://library.gnome.org/devel/glib/stable/glib-String-Utility-Functions.html
Regards,
Marc
On Feb 11, 2008 3:35 PM, Paulius Zaleckas <paulius.zaleckas at teltonika.lt> 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
>
More information about the gsmd-devel
mailing list