From b78302353b3dea1723b779e760b5addd2129c343 Mon Sep 17 00:00:00 2001 From: avsm Date: Wed, 16 Apr 2003 16:44:49 +0000 Subject: [PATCH] ho hum, another incorrect bound to snprintf margarida@ ok, submitted upstream --- productivity/siag/patches/patch-egon_fileio_ppt_c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 productivity/siag/patches/patch-egon_fileio_ppt_c diff --git a/productivity/siag/patches/patch-egon_fileio_ppt_c b/productivity/siag/patches/patch-egon_fileio_ppt_c new file mode 100644 index 00000000000..856b5ea7994 --- /dev/null +++ b/productivity/siag/patches/patch-egon_fileio_ppt_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-egon_fileio_ppt_c,v 1.1 2003/04/16 16:44:49 avsm Exp $ +--- 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);