# HG changeset patch # User Matti Hamalainen # Date 1211980423 -10800 # Node ID a2670c689319ed2604a29ab4a42a3b7b31b1c3e2 # Parent 50f6dce4b91a3eb9da52f484d42fcb10934afa50 Use g_strlcpy instead of strncpy. diff -r 50f6dce4b91a -r a2670c689319 src/neon/neon.c --- a/src/neon/neon.c Wed May 28 16:12:03 2008 +0300 +++ b/src/neon/neon.c Wed May 28 16:13:43 2008 +0300 @@ -349,8 +349,8 @@ _LEAVE 1; } - strncpy(username, authtok[0], NE_ABUFSIZ); - strncpy(password, authtok[1], NE_ABUFSIZ); + g_strlcpy(username, authtok[0], NE_ABUFSIZ); + g_strlcpy(password, authtok[1], NE_ABUFSIZ); _DEBUG("Authenticating: Username: %s, Password: %s", username, password);