openbsd-ports/sysutils/radmind/patches/patch-progress_c
jasper 2114697ef0 update radmind to 1.9.0
from William Yodlowsky (MAINTAINER)
2007-09-04 20:52:13 +00:00

31 lines
1002 B
Plaintext

$OpenBSD: patch-progress_c,v 1.3 2007/09/04 20:52:13 jasper Exp $
--- progress.c.orig Fri Oct 1 11:20:04 2004
+++ progress.c Wed Jul 18 09:41:16 2007
@@ -39,7 +39,7 @@ loadsetsize( FILE *tran )
while ( fgets( tline, LINE_MAX, tran ) != NULL ) {
linenum++;
- strcpy( line, tline );
+ (void)strlcpy( line, tline, sizeof( line ) );
if (( tac = argcargv( tline, &targv )) == 0 ) {
continue;
}
@@ -72,7 +72,7 @@ applyloadsetsize( FILE *tran )
while ( fgets( tline, LINE_MAX, tran ) != NULL ) {
linenum++;
- strcpy( line, tline );
+ (void)strlcpy( line, tline, sizeof( line ) );
/* skip empty lines and transcript marker lines */
if (( tac = argcargv( tline, &targv )) <= 1 ) {
continue;
@@ -113,7 +113,7 @@ lcksum_loadsetsize( FILE *tran, char *prefix )
while ( fgets( tline, LINE_MAX, tran ) != NULL ) {
linenum++;
- strcpy( line, tline );
+ (void)strlcpy( line, tline, sizeof( line ) );
if (( tac = argcargv( tline, &targv )) <= 1 ) {
continue;
}