search for: real_argv0

Displaying 1 result from an estimated 1 matches for "real_argv0".

2010 May 12
1
[PATCH] guestfish -i and virt-inspector work on filenames containing spaces (RHBZ#507810).
...(fp == NULL) { + perror ("open_memstream"); + exit (EXIT_FAILURE); + } + + //fprintf (fp, "virt-inspector"); + fprintf (fp, "inspector/run-inspector-locally"); while (optind < argc) { - if (strlen (cmd) + strlen (argv[optind]) + strlen (real_argv0) + 60 - >= sizeof cmd) { - fprintf (stderr, - _("%s: virt-inspector command too long for fixed-size buffer\n"), - program_name); - exit (EXIT_FAILURE); - } - strcat (cmd, " '"); - strcat (cmd, argv[opti...