summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:29:12 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:29:12 +0000
commit10dc4a2c37597e02c12a9df3e9dba02a73bfc11b (patch)
tree862068307dff135870c4ae58be677408c4942a39 /util.c
parent8ae60bfe8a4b233100f5128859c76239e5789f70 (diff)
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16
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 {