Fixed lame crash in lame parser

This commit is contained in:
Yevgen Muntyan 2008-01-18 10:37:12 -06:00
parent 58f9de970d
commit 302265a802
2 changed files with 6 additions and 3 deletions

View File

@ -18,7 +18,7 @@ Makefile(\.in)?$
^moo/moopython/plugins/(pyproject/project-plugin|python|terminal)\.ini$
^moo/moopython/pygtk/(moo(app|edit|term|utils)?-mod\.h|moo(app|edit|term|utils)-pygtk\.c)$
^moo/mooterm/termhelper_res\.rc$
^moo/mooutils/(moomarshals\.[ch]|stock-moo\.h)$
^moo/mooutils/(moomarshals\.[ch]|stock-(moo|medit)\.h)$
^moo/mooapp/smclient/(README|egg-session-end\.c|eggdesktopfile\.[ch]|eggsmclient-libgnomeui\.[ch]|eggsmclient-osx\.c|gedit\.diff|smclient\.patch)$
^moo/mooutils/xdgmime/.cvsignore$
^moo/mooutils/xdgmime/CVS
@ -34,3 +34,5 @@ Makefile(\.in)?$
^ppc-configure
/CVS/
^winbuild/.*\.(aps|ncb|suo)$
^winbuild/mingwds$
^winbuild/devcpp$

View File

@ -252,7 +252,7 @@ _moo_win32_lame_parse_cmd_line (const char *cmd_line,
tmp[0] = g_strdup ("cmd.exe");
tmp[1] = g_strdup ("/c");
memcpy (tmp + 2, argv, (len + 1) * sizeof (*tmp));
g_strfreev (argv);
g_free (argv);
argv = tmp;
}
@ -261,7 +261,8 @@ _moo_win32_lame_parse_cmd_line (const char *cmd_line,
}
#ifndef __MINGW32__
#if !defined(__MINGW32__) || \
(__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION <= 7)
int
_moo_win32_gettimeofday (struct timeval *tp,
G_GNUC_UNUSED gpointer tzp)