diff options
author | pat <pat@FreeBSD.org> | 2002-02-02 12:16:05 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-02-02 12:16:05 +0800 |
commit | 9dee8bee32d417be26c3161f30687117a94aa357 (patch) | |
tree | ce70d6d895883458eb6790e8309dce3984ba259b /editors/joe2 | |
parent | 5ff953cfed686ad255150963bcc2bebd4b389642 (diff) | |
download | freebsd-ports-gnome-9dee8bee32d417be26c3161f30687117a94aa357.tar.gz freebsd-ports-gnome-9dee8bee32d417be26c3161f30687117a94aa357.tar.zst freebsd-ports-gnome-9dee8bee32d417be26c3161f30687117a94aa357.zip |
Fix buffer overflow
PR: 34540
Submitted by: maintainer
Diffstat (limited to 'editors/joe2')
-rw-r--r-- | editors/joe2/files/patch-ag | 12 |
1 files changed, 12 insertions, 0 deletions
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 |