[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs util.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs util.c |
Date: |
Fri, 2 Oct 2020 16:06:02 -0400 (EDT) |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 20/10/02 16:06:02
Modified files:
. : util.c
Log message:
fix off by one bug, missing *
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/util.c?cvsroot=qemacs&r1=1.85&r2=1.86
Patches:
Index: util.c
===================================================================
RCS file: /sources/qemacs/qemacs/util.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -b -r1.85 -r1.86
--- util.c 27 Mar 2019 07:43:56 -0000 1.85
+++ util.c 2 Oct 2020 20:06:02 -0000 1.86
@@ -913,7 +913,7 @@
{
int len = 0, j;
- if (len < buf_size) {
+ if (len < buf_size - 1) {
/* c is assumed to be an ASCII character */
buf[len++] = c;
}
@@ -2322,7 +2322,7 @@
if (s) {
/* XXX: should special case spaces? */
- for (; s != '\0' && *s != sep; s++)
+ for (; *s != '\0' && *s != sep; s++)
continue;
bs.len = s - bs.s;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemacs-commit] qemacs util.c,
Charlie Gordon <=