Assorted code cleanups
- Modernize
lseek()
calls - configure: Use
AC_SYS_LARGEFILE
to enable large file support - Replace
sprintf
calls withsnprintf
orXtAsprintf
- Use
_CONST_X_STRING
to make libXt declare String asconst char *
- Further reduce the number of
-Wdiscarded-qualifiers
warnings from 276 to 76 - Mark
Punt
as_X_NORETURN
- Fix 4 of 4
-Wformat-truncation
warnings - Clear 4 of 6
-Wstringop-truncation
warnings - Plug memory leaks in error paths of
ScanDir()
- Handle
-Wformat-security
warnings from the DEBUG macro - Convert allocation calls to
XtMallocArray
orXtReallocArray
where appropriate - Simplify fallback code for systems without
S_ISDIR