pidgin: 0780e4aa: Replace an unchecked strcpy with g_strlc...
elb at pidgin.im
elb at pidgin.im
Thu Aug 11 10:51:28 EDT 2011
----------------------------------------------------------------------
Revision: 0780e4aa9eba10e9bbca7fee27b57a7a62648114
Parent: 4a49d2abc46efcf9db5e75e57a295cf4dcf88f8b
Author: elb at pidgin.im
Date: 07/17/11 13:48:47
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0780e4aa9eba10e9bbca7fee27b57a7a62648114
Changelog:
Replace an unchecked strcpy with g_strlcpy().
Thanks to the Electronic Frontier Foundation (https://www.eff.org/) for
this patch.
Changes against parent 4a49d2abc46efcf9db5e75e57a295cf4dcf88f8b
patched libpurple/win32/libc_interface.c
-------------- next part --------------
============================================================
--- libpurple/win32/libc_interface.c a0773f4a42f99c38b30963a5eb54d60d91862bc8
+++ libpurple/win32/libc_interface.c e853652c1abfe43443299a471b799dc2ef162958
@@ -982,7 +982,7 @@ wpurple_get_timezone_abbreviation(const
if (strcmp(tzname, zonename) == 0)
{
/* Matched zone */
- strcpy(localtzname, keyname);
+ g_strlcpy(localtzname, keyname, sizeof(localtzname));
RegCloseKey(key);
break;
}
@@ -997,7 +997,7 @@ wpurple_get_timezone_abbreviation(const
if (strcmp(tzname, zonename) == 0)
{
/* Matched DST zone */
- strcpy(localtzname, keyname);
+ g_strlcpy(localtzname, keyname, sizeof(localtzname));
RegCloseKey(key);
break;
}
More information about the Commits
mailing list