[MPlayer-dev-eng] [PATCH] add path support to glob-win32
Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Apr 6 14:27:10 CEST 2007
On Fri, Apr 06, 2007 at 01:49:06PM +0200, lode leroy wrote:
> This patch adds path support to the win32 implementation of glob.
> The current implementation only supports globbing in the current directory,
> so now it is possible to do
> mencoder mf://C:/temp/*.bmp -o test.avi
> whereas before this patch, one would have to do
> OLDPWD=%PWD% & cd C:/temp & mencoder mf://*.bmp -o %OLDPWD%/test.avi & cd
You are using strcpy and strcat on a fixed-size, on-stack buffer without
any checks. Even if this function is currently only used on
user-supplied data that is not acceptable.
More information about the MPlayer-dev-eng