FIX: Use dirname(3) properly
commitb2f16217df94ffa67acd2277376275f31edb9707
authorToni Gundogdu <legatvs@gmail.com>
Tue, 29 Nov 2011 22:14:47 +0000 (30 00:14 +0200)
committerToni Gundogdu <legatvs@gmail.com>
Sun, 18 Mar 2012 10:03:04 +0000 (18 12:03 +0200)
treeda78ce713a7329f6ad19282f69c4b38ba2efbffa
parent0c4ff3b7eb0e346da91213824d34742272afad08
FIX: Use dirname(3) properly

dirname(3) returned pointers to null-terminated strings must
not be passed to free(3).  dirname(3) may modify the contents.
Preserve the pathname by using a temporary copy with dirname(3).
src/libquvi/lua_wrap.c
src/libquvi/util.c
src/libquvi/util.h