diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xrdb.c | 4 |
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) | |||
| 204 | string = (char *) alloca (string_size * sizeof (*string)); | 204 | string = (char *) alloca (string_size * sizeof (*string)); |
| 205 | } | 205 | } |
| 206 | bcopy (s, string, len); | 206 | bcopy (s, string, len); |
| 207 | string[len + 1] = '\0'; | 207 | string[len] = '\0'; |
| 208 | if (decode_magic (string, file, return_path)) | 208 | if (decode_magic (string, file, return_path)) |
| 209 | return 1; | 209 | return 1; |
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | if (p) | 212 | if (p && *p != 0) |
| 213 | s = p + 1; | 213 | s = p + 1; |
| 214 | else | 214 | else |
| 215 | return 0; | 215 | return 0; |