diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-08-04 19:15:35 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-08-04 19:15:35 -0700 |
commit | 0065d05491ce5981ea20896bb26d21dcd31e6769 (patch) | |
tree | 13240167319d4a99ab5eacae4a883258eb2d28de /src/xrdb.c | |
parent | 18ab493650d648ab8dca651ea2698861f926e895 (diff) | |
download | emacs-0065d05491ce5981ea20896bb26d21dcd31e6769.tar.gz |
Adjust in response to jan.h.d's comments.
See, for example <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9196#26>.
Diffstat (limited to 'src/xrdb.c')
-rw-r--r-- | src/xrdb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/xrdb.c b/src/xrdb.c index 7c2cd586b09..63f06738b98 100644 --- a/src/xrdb.c +++ b/src/xrdb.c @@ -204,10 +204,7 @@ magic_file_p (const char *string, EMACS_INT string_len, const char *class, if (path_size - path_len <= next_len) { if (min (PTRDIFF_MAX, SIZE_MAX) / 2 - 1 - path_len < next_len) - { - xfree (path); - memory_full (SIZE_MAX); - } + memory_full (SIZE_MAX); path_size = (path_len + next_len + 1) * 2; path = (char *) xrealloc (path, path_size); } |