Fix memory leak

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2437 b5af796a-00a8-11df-919b-ffff7a100b7d
Only write terminating null char if malloc succeeded

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2438 b5af796a-00a8-11df-919b-ffff7a100b7d
Various fixes to problems exposed by Clang static analyzer

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2439 b5af796a-00a8-11df-919b-ffff7a100b7d
Make some constant arrays static; other minor fixes

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2440 b5af796a-00a8-11df-919b-ffff7a100b7d
Use u_int32_t instead of long where appropriate

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2441 b5af796a-00a8-11df-919b-ffff7a100b7d
Improved defensiveness against malloc failure

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2442 b5af796a-00a8-11df-919b-ffff7a100b7d
Fix null pointer handling

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2443 b5af796a-00a8-11df-919b-ffff7a100b7d
Comment out unused static functions, which cause build to fail in "release" mode; other minor cleanups

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2444 b5af796a-00a8-11df-919b-ffff7a100b7d
Comment out unused string constant

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2445 b5af796a-00a8-11df-919b-ffff7a100b7d
Comment out some unused functions by expanding "#if UNUSED" conditional

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2446 b5af796a-00a8-11df-919b-ffff7a100b7d
CacheInit(), CacheRead() prototypes: use u_int32_t instead of long where appropriate

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2447 b5af796a-00a8-11df-919b-ffff7a100b7d
Remove "-x" option from "ld" command which breaks build under newer Xcode versions

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2448 b5af796a-00a8-11df-919b-ffff7a100b7d
Comment out unused function-defining macro call

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2449 b5af796a-00a8-11df-919b-ffff7a100b7d
Fix "sed: RE error: illegal byte sequence", which turns out to be from feeding sed a TIFF file

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2450 b5af796a-00a8-11df-919b-ffff7a100b7d
Make 'buffer' arg to aml_add_buffer 'const char *', was just 'char *'

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2451 b5af796a-00a8-11df-919b-ffff7a100b7d
Some char[] variables really want to be local and writable (duh!). Undo part of previous change.

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2452 b5af796a-00a8-11df-919b-ffff7a100b7d
Represent all file system dates as unsigned 32-bit ints

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2453 b5af796a-00a8-11df-919b-ffff7a100b7d
Merged from trunk 2014-10-23 0800 GMT

git-svn-id: http://forge.voodooprojects.org/svn/chameleon@2454 b5af796a-00a8-11df-919b-ffff7a100b7d