Messages in this thread | | | Date | Tue, 14 Jan 2003 23:04:01 +0100 | From | DervishD <> | Subject | Re: Changing argv[0] under Linux. |
| |
Hi Philippe :)
> You just overwrote all your arguments (argv[0] and others) and part of > the environment.
Oh, sh*t, you're true, and that is the problem I was afraid to suffer from. Then, all I can do is overwrite argv[0] with a new string whose length is less or equal than the existing one.
Well, I suppose I must go with that limitation.
Thanks, Philippe, for the code snipped and the explanation.
Raúl - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |