- fix bug in ymodem with non zero malloc

PR:		164347
Submitted by:	NAGATA Shinya
This commit is contained in:
Dirk Meyer 2012-01-31 04:41:33 +00:00
parent 60b692e8d6
commit da4e511d26
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290148
2 changed files with 11 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= lrzsz
PORTVERSION= 0.12.20
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= comms
MASTER_SITES= http://www.ohse.de/uwe/releases/

View File

@ -0,0 +1,10 @@
--- src/lsz.c.orig 1998-12-30 07:07:59.000000000 +0900
+++ src/lsz.c 2012-01-21 10:44:49.000000000 +0900
@@ -1191,6 +1191,7 @@
struct stat f;
name2=alloca(PATH_MAX+1);
+ f.st_size = 0;
if (protocol==ZM_XMODEM) {
if (Verbose && *zi->fname && fstat(fileno(input_f), &f)!= -1) {