From 9dee8bee32d417be26c3161f30687117a94aa357 Mon Sep 17 00:00:00 2001 From: pat Date: Sat, 2 Feb 2002 04:16:05 +0000 Subject: Fix buffer overflow PR: 34540 Submitted by: maintainer --- editors/joe2/files/patch-ag | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 editors/joe2/files/patch-ag (limited to 'editors/joe2') diff --git a/editors/joe2/files/patch-ag b/editors/joe2/files/patch-ag new file mode 100644 index 000000000000..4707525efca7 --- /dev/null +++ b/editors/joe2/files/patch-ag @@ -0,0 +1,12 @@ +--- rc.c.orig Fri Feb 1 16:50:23 2002 ++++ rc.c Fri Feb 1 16:50:43 2002 +@@ -610,7 +610,8 @@ + FILE *fd; /* rc file */ + int line=0; /* Line number */ + int err=0; /* Set to 1 if there was a syntax error */ +- ossep(zcpy(buf,name)); ++ strlcpy(buf,name,sizeof(buf)); ++ ossep(buf); + #ifdef __MSDOS__ + fd=fopen(buf,"rt"); + #else -- cgit