[Asterisk-cvs] asterisk/editline common.c,1.1,1.2 hist.c,1.2,1.3
markster at lists.digium.com
markster at lists.digium.com
Wed Jul 14 10:11:30 CDT 2004
Update of /usr/cvsroot/asterisk/editline
In directory mongoose.digium.com:/tmp/cvs-serv24705/editline
Modified Files:
common.c hist.c
Log Message:
Merge remaining audit patch (save dlfcn.c)
Index: common.c
===================================================================
RCS file: /usr/cvsroot/asterisk/editline/common.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- common.c 27 Nov 2002 05:04:06 -0000 1.1
+++ common.c 14 Jul 2004 13:57:15 -0000 1.2
@@ -676,7 +676,7 @@
if (el->el_history.eventno == 0) { /* save the current buffer
* away */
(void) strncpy(el->el_history.buf, el->el_line.buffer,
- EL_BUFSIZ);
+ EL_BUFSIZ - 1);
el->el_history.last = el->el_history.buf +
(el->el_line.lastchar - el->el_line.buffer);
}
@@ -742,7 +742,7 @@
}
if (el->el_history.eventno == 0) {
(void) strncpy(el->el_history.buf, el->el_line.buffer,
- EL_BUFSIZ);
+ EL_BUFSIZ - 1);
el->el_history.last = el->el_history.buf +
(el->el_line.lastchar - el->el_line.buffer);
}
Index: hist.c
===================================================================
RCS file: /usr/cvsroot/asterisk/editline/hist.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- hist.c 26 Mar 2003 22:37:33 -0000 1.2
+++ hist.c 14 Jul 2004 13:57:15 -0000 1.3
@@ -106,7 +106,7 @@
if (el->el_history.eventno == 0) { /* if really the current line */
(void) strncpy(el->el_line.buffer, el->el_history.buf,
- el->el_history.sz);
+ el->el_history.sz - 1);
el->el_line.lastchar = el->el_line.buffer +
(el->el_history.last - el->el_history.buf);
More information about the svn-commits
mailing list