[ gpsdrive ] Build issues
Guenther Meyer
d.s.e at sordidmusic.com
Wed Nov 19 00:50:11 AKST 2008
Am Mittwoch 19 November 2008 schrieb Hamish:
> thanks, the comment[255] is nice (is that the sqlite sloppy varchar() max?)
>
no. the same value was already used in the mysql database. it seemed to be a
useful size...
> I don't know much about glib-2, does g_strlcpy() null terminate strings?
> e.g. with strncpy() you set max number of chars to copy, but if it
> overflows that max number the null char is not written and you need to
> explicitly do buff[sizeof(buff)-1] = '\0';. do the same pains apply to
> g_strlcpy()?
>
g_strlcpy (dest, src, dest_size);
dest is guaranteed to be nul-terminated; src must be nul-terminated; dest_size
is the buffer size, not the number of chars to copy.
> hmm, there is both:
> $ host friendsd.gpsdrive.de
> friendsd.gpsdrive.de has address 85.10.202.12
> $ host friends.gpsdrive.de
> friends.gpsdrive.de has address 78.47.242.84
>
ok, I didn't know of the latter one. there is really a friendsd service
running?
the other one is mine...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20081119/b07edbf0/attachment.bin>
More information about the GPSdrive
mailing list