changeset 3142:3466d61e7b09

(magic_searchpath_decoder): Fix typos.
author Richard M. Stallman <rms@gnu.org>
date Wed, 26 May 1993 22:12:18 +0000
parents ffe66ae9bfb3
children 40f18bdaf972
files src/xrdb.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xrdb.c	Wed May 26 21:51:07 1993 +0000
+++ b/src/xrdb.c	Wed May 26 22:12:18 1993 +0000
@@ -204,12 +204,12 @@
 	      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;