]> git.tdb.fi Git - ext/subsurface.git/commit
replaced stdndup() with the inlined equivalent
authorLubomir I. Ivanov <neolit123@gmail.com>
Sun, 26 Aug 2012 21:20:48 +0000 (00:20 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 26 Aug 2012 21:37:28 +0000 (14:37 -0700)
commit9d1057469485739c9a2563cf7c88fd2debc1e730
tree806fc9683c221a2af737bacdd9c0e976b1d78872
parent642c83f5327317780a0f10b3ab46f6c1bd8bb202
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 <neolit123@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
gtk-gui.c