aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2007-02-13 06:22:15 +0800
committerarved <arved@FreeBSD.org>2007-02-13 06:22:15 +0800
commit064207d9ef870dbdfe64e0358204f817cb7ef985 (patch)
treed7c9ca9ea0de6147e54549865723c49925bbccfa /www
parent0d6d0ce74232dab8cc5abe6aad848a4d276176d6 (diff)
downloadfreebsd-ports-graphics-064207d9ef870dbdfe64e0358204f817cb7ef985.tar.gz
freebsd-ports-graphics-064207d9ef870dbdfe64e0358204f817cb7ef985.tar.zst
freebsd-ports-graphics-064207d9ef870dbdfe64e0358204f817cb7ef985.zip
- Fix a small bug that causes a garbage errormessage printed to stderr
Don't try to print an unitialized buf. Don't print to stderr because the condition is not a bug - Bump PORTREVISION Approved by: maintainer
Diffstat (limited to 'www')
-rw-r--r--www/swiggle/Makefile1
-rw-r--r--www/swiggle/files/patch-swiggle.c23
2 files changed, 17 insertions, 7 deletions
diff --git a/www/swiggle/Makefile b/www/swiggle/Makefile
index cff56bd62af..6118d73a847 100644
--- a/www/swiggle/Makefile
+++ b/www/swiggle/Makefile
@@ -6,6 +6,7 @@
PORTNAME= swiggle
PORTVERSION= 0.4
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://homepage.univie.ac.at/l.ertl/swiggle/files/ \
http://bsd-geek.de/FreeBSD/distfiles/
diff --git a/www/swiggle/files/patch-swiggle.c b/www/swiggle/files/patch-swiggle.c
index 96b6bfc5238..33dc13258f9 100644
--- a/www/swiggle/files/patch-swiggle.c
+++ b/www/swiggle/files/patch-swiggle.c
@@ -1,5 +1,5 @@
---- swiggle.c.orig Sat Oct 23 22:58:37 2004
-+++ swiggle.c Wed Nov 1 16:34:10 2006
+--- swiggle.c.orig Sun Jan 14 13:03:36 2007
++++ swiggle.c Sun Feb 11 16:32:41 2007
@@ -66,12 +66,14 @@
char generated[1024];
char *progname = "";
@@ -15,7 +15,7 @@
int (*sort_func)();
#define MAX_PER_PAGE (cols*rows)
-@@ -113,7 +115,7 @@
+@@ -115,7 +117,7 @@
progname = argv[0];
sort_func = sort_by_filename;
@@ -24,7 +24,7 @@
switch (i) {
case 'c':
cols = (int) strtol(optarg, &eptr, 10);
-@@ -163,6 +165,12 @@
+@@ -165,6 +167,12 @@
usage();
}
break;
@@ -37,7 +37,7 @@
case 'f':
force = 1;
break;
-@@ -172,6 +180,9 @@
+@@ -174,6 +182,9 @@
case 'o':
rm_orphans = 0;
break;
@@ -47,7 +47,7 @@
case 'v':
version();
break;
-@@ -353,7 +364,7 @@
+@@ -380,7 +391,7 @@
qsort(imglist, imgcount, sizeof(struct imginfo), sort_func);
create_html(dir, imglist, imgcount);
@@ -56,7 +56,16 @@
printf("%d thumbnail index pages created.\n", x);
}
-@@ -1040,6 +1051,11 @@
+@@ -868,7 +879,7 @@
+ if (closedir(curdir))
+ fprintf(stderr, "can't closedir(%s)\n", path);
+ } else
+- fprintf(stderr, "can't opendir(%s)\n", buf);
++ fprintf(stdout, "can't opendir(%s)\n", path);
+ }
+
+ /*
+@@ -1076,6 +1087,11 @@
"(default: %d)\n", thumbheight);
fprintf(stderr, " -H <j> ... height of the scaled images in pixel "
"(default: %d)\n", scaleheight);