diff src/core.c @ 3533:6c32036050cf

[gaim-migrate @ 3607] An automake fix, and a fix for an incredibly blatant Linuxism. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 18 Sep 2002 00:11:45 +0000
parents 3da42b64304e
children 9682c0e022c6
line wrap: on
line diff
--- a/src/core.c	Tue Sep 17 16:44:00 2002 +0000
+++ b/src/core.c	Wed Sep 18 00:11:45 2002 +0000
@@ -443,7 +443,7 @@
 	if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) != -1) {
 		mode_t m = umask(0177);
 		saddr.sun_family = AF_UNIX;
-		g_snprintf(saddr.sun_path, 108, "%s/gaim_%s.%d",
+		g_snprintf(saddr.sun_path, sizeof(saddr.sun_path), "%s/gaim_%s.%d",
 			   g_get_tmp_dir(), g_get_user_name(), gaim_session);
 		if (bind(fd, (struct sockaddr *)&saddr, sizeof(saddr)) != -1)
 			listen(fd, 100);