X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/7d652d97681c4f1b67018f44f64c619ef5edd990..647d367f3b5c92db371da218aa8e5f643b2ad1ad:/src/xrdb.c diff --git a/src/xrdb.c b/src/xrdb.c index 60dcdae080..7220915e63 100644 --- a/src/xrdb.c +++ b/src/xrdb.c @@ -48,10 +48,6 @@ along with GNU Emacs. If not, see . */ #include "keyboard.h" #endif -char *x_get_string_resource (XrmDatabase rdb, const char *name, - const char *class); - - /* X file search path processing. */ @@ -183,7 +179,7 @@ magic_db (const char *string, ptrdiff_t string_len, const char *class, else next = p, next_len = 1; - /* Do we have room for this component followed by a '\0' ? */ + /* Do we have room for this component followed by a '\0'? */ if (path_size - path_len <= next_len) { if (min (PTRDIFF_MAX, SIZE_MAX) / 2 - 1 - path_len < next_len) @@ -238,9 +234,7 @@ gethomedir (void) copy = xmalloc (strlen (ptr) + 2); strcpy (copy, ptr); - strcat (copy, "/"); - - return copy; + return strcat (copy, "/"); }