summaryrefslogtreecommitdiff
path: root/src/xrdb.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-05-26 22:12:18 +0000
committerRichard M. Stallman <rms@gnu.org>1993-05-26 22:12:18 +0000
commitbb753388ea680f6cb61b096de4a330ec83da1966 (patch)
treeb1580fccb3cac2ee7e7f928c65ae4d2b6bba0f52 /src/xrdb.c
parentbc92b78c84690823e2ef63c5627a8569b8dd45fb (diff)
downloademacs-bb753388ea680f6cb61b096de4a330ec83da1966.tar.gz
(magic_searchpath_decoder): Fix typos.
Diffstat (limited to 'src/xrdb.c')
-rw-r--r--src/xrdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xrdb.c b/src/xrdb.c
index cf7a06f8041..fdce4e44a88 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -204,12 +204,12 @@ magic_searchpath_decoder (incantation_string, file, return_path)
string = (char *) alloca (string_size * sizeof (*string));
}
bcopy (s, string, len);
- string[len + 1] = '\0';
+ string[len] = '\0';
if (decode_magic (string, file, return_path))
return 1;
}
- if (p)
+ if (p && *p != 0)
s = p + 1;
else
return 0;