src/blist.c

changeset 5435
990c340ecb6d
parent 5394
c0edfd4a0491
child 5436
a0e0bacaa196
--- a/src/blist.c	Sun May 18 18:34:01 2003 +0000
+++ b/src/blist.c	Sun May 18 19:13:21 2003 +0000
@@ -1113,7 +1113,7 @@
 		int protocol = (account->protocol == GAIM_PROTO_OSCAR) ? (isalpha(account->username[0]) ? GAIM_PROTO_TOC : GAIM_PROTO_ICQ): account->protocol;
 
 		if (file != (char *)NULL) {
-			sprintf(path, "%s" G_DIR_SEPARATOR_S "%s.%d.blist", file, g_screenname, protocol);
+			snprintf(path, PATHSIZE, "%s" G_DIR_SEPARATOR_S "%s.%d.blist", file, g_screenname, protocol);
 			g_free(g_screenname);
 		} else {
 			g_free(g_screenname);

mercurial