comparison finch/gntnotify.c @ 26732:951102c642c5

Use safe function.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 23 Apr 2009 20:05:26 +0000
parents 1c73d2ef9ddc
children 9c283917ecf7
comparison
equal deleted inserted replaced
26731:96f82c75f1c0 26732:951102c642c5
261 261
262 static char * 262 static char *
263 userinfo_hash(PurpleAccount *account, const char *who) 263 userinfo_hash(PurpleAccount *account, const char *who)
264 { 264 {
265 char key[256]; 265 char key[256];
266 snprintf(key, sizeof(key), "%s - %s", purple_account_get_username(account), purple_normalize(account, who)); 266 g_snprintf(key, sizeof(key), "%s - %s", purple_account_get_username(account), purple_normalize(account, who));
267 return g_utf8_strup(key, -1); 267 return g_utf8_strup(key, -1);
268 } 268 }
269 269
270 static void 270 static void
271 remove_userinfo(GntWidget *widget, gpointer key) 271 remove_userinfo(GntWidget *widget, gpointer key)