diff src/internal.h @ 13104:e1e5462b7d81

[gaim-migrate @ 15466] Rework lots of date parsing. I either introduced a whole lot of bugs, or I've made sure all dates are localized properly now. Only time will tell which it is... ;) committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 02 Feb 2006 19:50:51 +0000
parents 8004885fabbe
children a0a4b44239e8
line wrap: on
line diff
--- a/src/internal.h	Thu Feb 02 19:39:12 2006 +0000
+++ b/src/internal.h	Thu Feb 02 19:50:51 2006 +0000
@@ -162,6 +162,12 @@
 #	endif
 #endif
 
+/* Safer ways to work with static buffers. When using non-static
+ * buffers, either use g_strdup_* functions (preferred) or use
+ * g_strlcpy/g_strlcpy directly. */
+#define gaim_strlcpy(dest, src) g_strlcpy(dest, src, sizeof(dest))
+#define gaim_strlcat(dest, src) g_strlcat(dest, src, sizeof(dest))
+
 #define GAIM_WEBSITE "http://gaim.sourceforge.net/"
 
 #ifndef _WIN32