diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-11-23 16:49:55 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-12-12 18:15:48 +0100 |
commit | 07ee2674558bfcda550321bae5c1c0ea27869527 (patch) | |
tree | c4eec8bc77a796069124ccfdafdf96caeeab55c3 /client | |
parent | 55495a61bfd58332f6c8c0074d51b1bc649df5fa (diff) | |
download | spice-07ee2674558bfcda550321bae5c1c0ea27869527.tar.gz spice-07ee2674558bfcda550321bae5c1c0ea27869527.tar.xz spice-07ee2674558bfcda550321bae5c1c0ea27869527.zip |
reds: Use g_strlcpy instead of strncpy
reds.c is using strncpy with a length one byte less than the
destination buffer size, and is relying on the fact that the
destination buffers are static global variables.
Now that we depend on glib, we can use g_strlcpy instead, which
avoids relying on such a subtle trick to get a nul-terminated
string.
Diffstat (limited to 'client')
0 files changed, 0 insertions, 0 deletions