changeset 8789:58787b676854

[gaim-migrate @ 9551] if i read gaim-devel right, nathan said this looked more or less right. time should tell... committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 24 Apr 2004 04:47:38 +0000
parents 262f81346c0a
children 240c6282f546
files src/proxy.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/proxy.c	Sat Apr 24 01:43:11 2004 +0000
+++ b/src/proxy.c	Sat Apr 24 04:47:38 2004 +0000
@@ -407,7 +407,7 @@
 	ppid = getppid();
 	snprintf(s, 300, "/proc/%d/exe", ppid);
 	n = readlink(s, e, sizeof(e));
-	e[MAX(n,sizeof(e)-1)] = '\0';
+	e[MIN(n,sizeof(e)-1)] = '\0';
 	
 	if(strstr(e,"gdb")) {
 		gaim_debug(GAIM_DEBUG_INFO, "dns",