win32: get_path(): fix undefined behavior
commitf64a4e9931428de0f308f6ed0a0144edb8ce9619
authorMartin Herkt <lachs0r@srsfckn.biz>
Sat, 28 Apr 2012 15:37:01 +0000 (28 17:37 +0200)
committerUoti Urpala <uau@mplayer2.org>
Sat, 28 Apr 2012 18:47:53 +0000 (28 21:47 +0300)
tree41b3e92d02621878d9665cd900e0ffd82331ce2c
parent66e0426907ae6c95959206d037cdd74c70198f1c
win32: get_path(): fix undefined behavior

MSWindows-specific code in get_path() declared a stack array
(exedir[]) in an inner scope, then kept a reference to the array
beyond the end of the that scope. Fix. This caused visible breakage
with GCC 4.7.
path.c