summaryrefslogtreecommitdiff
path: root/databases/grass-i18n/files/patch-src-raster-r.in.doq-cmd-get_newhead.c
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2004-07-11 11:20:40 +0000
committerMax Khon <fjoe@FreeBSD.org>2004-07-11 11:20:40 +0000
commit2f18811c6db43860973444b16d0ca59a44b1388a (patch)
treeec0d2f25135ae2e65318dd452d84c3b1524a68ce /databases/grass-i18n/files/patch-src-raster-r.in.doq-cmd-get_newhead.c
parentlibpng row buffer overflow (diff)
- Fix build on 5.x (fix compiling with gcc 3.x). This fixes pkg-plist on 5.x.
- Provide really working fix for odbc driver. - Remove locks/%%HOSTNAME%% from pkg-plist -- it is cleaned up in pkg-deinstall. - Bump PORTREVISION.
Diffstat (limited to 'databases/grass-i18n/files/patch-src-raster-r.in.doq-cmd-get_newhead.c')
-rw-r--r--databases/grass-i18n/files/patch-src-raster-r.in.doq-cmd-get_newhead.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/grass-i18n/files/patch-src-raster-r.in.doq-cmd-get_newhead.c b/databases/grass-i18n/files/patch-src-raster-r.in.doq-cmd-get_newhead.c
new file mode 100644
index 000000000000..44db98ad52c3
--- /dev/null
+++ b/databases/grass-i18n/files/patch-src-raster-r.in.doq-cmd-get_newhead.c
@@ -0,0 +1,20 @@
+--- src/raster/r.in.doq/cmd/get_newhead.c.orig Sun Jul 11 17:17:15 2004
++++ src/raster/r.in.doq/cmd/get_newhead.c Sun Jul 11 17:17:26 2004
+@@ -44,7 +44,7 @@
+ /*** Check data ordering ******/
+ if (strstr(buf,"LEFT_RIGHT/TOP_BOTTOM") == NULL) {
+ fprintf(stderr,"Unable to handle this data ordering: %s\n",buf);
+- exit();
++ exit(1);
+ }
+ }
+ else if (strstr(buf,"SAMPLES_AND_LINES") != NULL) {
+@@ -63,7 +63,7 @@
+ /*********** Get # bands now handlws one ***************/
+ if (strstr(buf,"BLACK&WHITE") == NULL) {
+ fprintf(stderr,"There are multiple bands in this image.\n This routine presently handles only one\n");
+- exit();
++ exit(1);
+ }
+ }
+ else if (strstr(buf,"HORIZONTAL_DATUM") != NULL) {