changeset 2656:a2670c689319

Use g_strlcpy instead of strncpy.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 28 May 2008 16:13:43 +0300
parents 50f6dce4b91a
children 61bd7946c78b
files src/neon/neon.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);