[patch] add strlcpy and strlcat
Paulius Zaleckas
paulius.zaleckas at teltonika.lt
Mon Feb 11 16:38:28 CET 2008
I know, but I don't think that anyone here wants GLib dependency... If
you will look at pppd, rsync, openssh, asterisk and many others, they
have their own implementation of these functions.
I think the only interesting implementation for us is uClibc... I hope I
will be able to make a patch for it...
Marc Verwerft wrote:
> 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