mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-28 08:04:47 +02:00
hide all extra arguments, because they're probably -p
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@321 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
c712485ff1
commit
6fecd2b69d
@ -1667,7 +1667,7 @@ main (int argc, char** argv)
|
|||||||
int c;
|
int c;
|
||||||
int nhext = 0, nhauth = 0;
|
int nhext = 0, nhauth = 0;
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "qh:pp:f:ae")) != -1)
|
while ((c = getopt(argc, argv, "qh:pf:ae")) != -1)
|
||||||
{
|
{
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
@ -1696,6 +1696,12 @@ main (int argc, char** argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (optind < argc)
|
||||||
|
{
|
||||||
|
size_t len = strlen(argv[optind]);
|
||||||
|
memset(argv[optind++], 0, len);
|
||||||
|
}
|
||||||
|
|
||||||
create_config();
|
create_config();
|
||||||
|
|
||||||
/* signal handlers */
|
/* signal handlers */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user