pkgsrc/misc/siag/patches/patch-aw

16 lines
438 B
Text
Raw Normal View History

$NetBSD: patch-aw,v 1.1 2008/01/09 19:16:14 reed Exp $
from OpenBSD ports
--- egon/fileio_ppt.c.orig Wed Apr 16 16:07:53 2003
+++ egon/fileio_ppt.c Wed Apr 16 16:08:36 2003
@@ -479,7 +479,7 @@ static int load(char *fn, buffer *b)
row = 1;
sty = MW_STY_DEFAULT;
- strncpy(filename, fn, 1000);
+ strncpy(filename, fn, sizeof filename);
cfs = cole_mount(filename, &colerrno);
if (cfs == NULL) {
cole_perror("Egon", colerrno);