[57602] trunk/base/src/pextlib1.0/xinstall.c

raimue at macports.org raimue at macports.org
Sun Sep 13 18:22:39 PDT 2009


Revision: 57602
          http://trac.macports.org/changeset/57602
Author:   raimue at macports.org
Date:     2009-09-13 18:22:38 -0700 (Sun, 13 Sep 2009)
Log Message:
-----------
pextlib1.0/xinstall.c:
Debug messages from xinstall have been truncated if a path name is long.

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/xinstall.c

Modified: trunk/base/src/pextlib1.0/xinstall.c
===================================================================
--- trunk/base/src/pextlib1.0/xinstall.c	2009-09-14 01:13:27 UTC (rev 57601)
+++ trunk/base/src/pextlib1.0/xinstall.c	2009-09-14 01:22:38 UTC (rev 57602)
@@ -436,8 +436,10 @@
 	int devnull, files_match, from_fd = 0, serrno, target;
 	int tempcopy, temp_fd, to_fd = 0;
 	char backup[MAXPATHLEN], *p, pathbuf[MAXPATHLEN], tempfile[MAXPATHLEN];
-	char msg[256];
 
+        /* message contains function name, two paths and a little bit extra formatting */
+        char msg[MAXPATHLEN * 2 + 32];
+
 	files_match = 0;
 
 	/* If try to install NULL file to a directory, fails. */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090913/4201db2b/attachment.html>


More information about the macports-changes mailing list