mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
Fix a geline() segfault on 8.0 when using --listed-incremental.
Submitted by: Dennis Noordsij <noordsij@cs.helsinki.fi>
This commit is contained in:
parent
3e0336c284
commit
79534bfe7b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=248274
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= tar
|
||||
PORTVERSION= 1.22
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= archivers sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_GNU}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
23
archivers/gtar/files/patch-src_incremen.c
Normal file
23
archivers/gtar/files/patch-src_incremen.c
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- src/incremen.c.orig
|
||||
+++ src/incremen.c
|
||||
@@ -870,7 +870,7 @@
|
||||
time_t sec;
|
||||
long int nsec;
|
||||
char *buf = 0;
|
||||
- size_t bufsize;
|
||||
+ size_t bufsize = 0;
|
||||
char *ebuf;
|
||||
long lineno = 1;
|
||||
|
||||
@@ -1230,7 +1230,7 @@
|
||||
{
|
||||
int fd;
|
||||
char *buf = 0;
|
||||
- size_t bufsize;
|
||||
+ size_t bufsize = 0;
|
||||
|
||||
/* Open the file for both read and write. That way, we can write
|
||||
it later without having to reopen it, and don't have to worry if
|
Loading…
Reference in New Issue
Block a user