From: Lubomir I. Ivanov Date: Sun, 26 Aug 2012 21:20:48 +0000 (+0300) Subject: replaced stdndup() with the inlined equivalent X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9d1057469485739c9a2563cf7c88fd2debc1e730;hp=9d1057469485739c9a2563cf7c88fd2debc1e730;p=ext%2Fsubsurface.git replaced stdndup() with the inlined equivalent don't kill the OS incompatibility messenger. 1) http://stackoverflow.com/questions/6062822/whats-wrong-with-strndup stdndup() is POSIX 2008, but apparently not available on OSX and Windows it could be made potentially application global (e.g. a local "stdndup.h") 2) free() memory at pointer "current_dir", once we are done. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Linus Torvalds ---