[34422] trunk/base/src/pextlib1.0/curl.c
afb at macports.org
afb at macports.org
Sun Feb 24 07:28:13 PST 2008
Revision: 34422
http://trac.macosforge.org/projects/macports/changeset/34422
Author: afb at macports.org
Date: 2008-02-24 07:28:10 -0800 (Sun, 24 Feb 2008)
Log Message:
-----------
fix workaround bug when distfile contains NUL characters
Modified Paths:
--------------
trunk/base/src/pextlib1.0/curl.c
Modified: trunk/base/src/pextlib1.0/curl.c
===================================================================
--- trunk/base/src/pextlib1.0/curl.c 2008-02-24 14:46:27 UTC (rev 34421)
+++ trunk/base/src/pextlib1.0/curl.c 2008-02-24 15:28:10 UTC (rev 34422)
@@ -383,7 +383,7 @@
if ( (p = fgets(buf, BUFSIZ, theFile)) != NULL) {
/* skip stray header escaping into output */
if (strncmp(p, "Last-Modified:", 14) != 0)
- fwrite(p, 1, strlen(p), fp);
+ rewind(theFile);
}
while ( (size = fread(buf, 1, BUFSIZ, theFile)) > 0) {
fwrite(buf, 1, size, fp);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080224/85592f70/attachment.html
More information about the macports-changes
mailing list