Windows: fixup gettmpdir()
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 14 Jan 2011 05:15:10 +0000 (00:15 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Fri, 14 Jan 2011 16:30:42 +0000 (08:30 -0800)
commita61a719d35cd6008f35c4f5cb8aaa83453d1d8c1
tree93639de189128e6308d8c552754253f2c4ef1a0e
parente50cab06c4a5dad37b27f411dfd511130567726d
Windows: fixup gettmpdir()

Use InterlockedCompareExchangePointer for hostparse()
instead of fudging it and leaking memory.

If the max path length is MAX_PATH must allocate MAX_PATH+1.

Change-Id: I9162188c78922202b40859249736a23beae60b3e
Reviewed-on: http://gerrit.openafs.org/3658
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/util/hostparse.c