Fix a crash in the kml converter. Tested on amd64, i386, sparc64 and zaurus.

A similar fix was applied to gpsbabel cvs.
This commit is contained in:
ckuethe 2006-11-25 00:39:41 +00:00
parent a7d0d66412
commit 11a4d01f8a
2 changed files with 13 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.4 2006/11/23 19:49:23 ckuethe Exp $
# $OpenBSD: Makefile,v 1.5 2006/11/25 00:39:41 ckuethe Exp $
COMMENT-main= "GPS waypoint, track, and route conversion tool"
COMMENT-gui= "Tk front-end to gpsbabel"
VERSION= 1.3.2
DISTNAME= gpsbabel-${VERSION}
PKGNAME-main= gpsbabel-${VERSION}p0
PKGNAME-main= gpsbabel-${VERSION}p1
PKGNAME-gui= gpsbabel-gui-${VERSION}p0
CATEGORIES= geo

View File

@ -0,0 +1,11 @@
--- util.c.orig Thu Nov 23 15:37:47 2006
+++ util.c Thu Nov 23 15:36:11 2006
@@ -309,7 +309,7 @@
*strp = NULL;
return -1;
}
- bufsize = 1;
+ bufsize = FIRSTSIZE;
} else if ((newbuf = xrealloc(buf, nextsize)) != NULL) {
buf = newbuf;
bufsize = nextsize;