* xrdb.c: Don't assume strlen fits in int; avoid some strlens.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Jun 2011 02:15:16 +0000 (19:15 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Jun 2011 02:15:16 +0000 (19:15 -0700)
commit281549626c7a22c2d8643fc563974ee6fbc401a8
tree36efa23cefa8f3e423ea21da7751d7b1917fe546
parent7de51af53b40c4fcaa4369feffad11e9db11fbe0
* xrdb.c: Don't assume strlen fits in int; avoid some strlens.

* xrdb.c (magic_file_p, search_magic_path):
Omit last arg SUFFIX; it was always 0.  All callers changed.
(magic_file_p): Use ptrdiff_t, not int.  Check for size overflow.
src/ChangeLog
src/xrdb.c