changeset 31799:e972e2161bf5

Fix some un-fixes in the Zephyr strlcpy changes
author Ethan Blanton <elb@pidgin.im>
date Tue, 16 Aug 2011 15:03:35 +0000
parents be2d3f222f07
children a13744df700c
files libpurple/protocols/zephyr/ZInit.c libpurple/protocols/zephyr/Zinternal.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/zephyr/ZInit.c	Tue Aug 16 12:09:51 2011 +0000
+++ b/libpurple/protocols/zephyr/ZInit.c	Tue Aug 16 15:03:35 2011 +0000
@@ -108,7 +108,7 @@
 	return (krbval);
     }
 #else
-    g_strlcpy(__Zephyr_realm, "local-realm", 12);
+    g_strlcpy(__Zephyr_realm, "local-realm", REALM_SZ);
 #endif
 
     __My_addr.s_addr = INADDR_NONE;
--- a/libpurple/protocols/zephyr/Zinternal.c	Tue Aug 16 12:09:51 2011 +0000
+++ b/libpurple/protocols/zephyr/Zinternal.c	Tue Aug 16 15:03:35 2011 +0000
@@ -767,7 +767,7 @@
     if (*ptr+len > end)
 	return 1;
     if (field)
-      g_strlcpy(*ptr, field, len);
+        strcpy(*ptr, field);
     else
       **ptr = '\0';
     *ptr += len;