fixed an odd case with the launcher, didn't deal with argc properly

Original commit message from CVS:
fixed an odd case with the launcher, didn't deal with argc properly
This commit is contained in:
Erik Walthinsen 2001-01-14 21:38:15 +00:00
parent a72f9832d1
commit 3c288c183a
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
bin_PROGRAMS = gstreamer-launch gstreamer-register gstreamer-inspect
LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(top_builddir)/gst/libgst.la
INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) -I$(top_srcdir)
LDADD = $(GST_LIBS)

View file

@ -16,7 +16,7 @@ int main(int argc,char *argv[]) {
// make a null-terminated version of argv
argvn = g_new0(char *,argc);
memcpy(argvn,argv+1,sizeof(char*)*argc);
memcpy(argvn,argv+1,sizeof(char*)*(argc-1));
// join the argvs together
cmdline = g_strjoinv(" ",argvn);
// free the null-terminated argv