summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-26 22:49:11 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-26 22:49:11 +0000
commitc8a87639c7cb7aef72630978a0e5a0d92618140c (patch)
tree862068307dff135870c4ae58be677408c4942a39 /util.c
parent0a193e032ba1ecf3f003e027e833dc9d274cb740 (diff)
merge latest (4.3.99.16) from XFree86 (vendor) branch
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index d38e7ae..91c3fbc 100644
--- a/util.c
+++ b/util.c
@@ -24,7 +24,7 @@
* used in advertising or publicity pertaining to distribution of the software
* without specific, written prior permission.
*/
-/* $XFree86: xc/programs/xedit/util.c,v 1.25 2002/12/04 05:27:56 paulo Exp $ */
+/* $XFree86: xc/programs/xedit/util.c,v 1.27 2003/05/23 14:58:02 tsi Exp $ */
#include <stdio.h>
#include <stdlib.h> /* for realpath() */
@@ -234,7 +234,7 @@ KillTextSource(xedit_flist_item *item)
if (flist.itens[idx] == item) {
if (idx + 1 < flist.num_itens)
nitem = flist.itens[idx + 1];
- else if (idx - 1 >= 0)
+ else if (idx >= 1)
nitem = flist.itens[idx - 1];
break;
}
@@ -858,7 +858,7 @@ DirWindow(Widget w, XEvent *event, String *params, Cardinal *num_params)
return;
if (*num_params == 1) {
- strncpy(path, params[0], sizeof(path - 2));
+ strncpy(path, params[0], sizeof(path) - 2);
path[sizeof(path) - 2] = '\0';
}
else {