diff options
author | 2003-02-28 18:05:48 +0000 | |
---|---|---|
committer | 2003-02-28 18:05:48 +0000 | |
commit | 604855a4256da88d2dcebbbe0734b4244737a41c (patch) | |
tree | 422cd7963c6e1600d8142e8c71bf70eb7556fccf /lib/csu/powerpc | |
parent | Fix double Debug() usage, for instance, Debug(DPARS|DEXT...) (diff) | |
download | wireguard-openbsd-604855a4256da88d2dcebbbe0734b4244737a41c.tar.xz wireguard-openbsd-604855a4256da88d2dcebbbe0734b4244737a41c.zip |
copy basename of argv[0] to bss for __progname, so that large stack smash
does not make propolice reporting ineffective; millert miod ok
Diffstat (limited to 'lib/csu/powerpc')
-rw-r--r-- | lib/csu/powerpc/crt0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csu/powerpc/crt0.c b/lib/csu/powerpc/crt0.c index 6491ab65ade..4bfd73b5c2c 100644 --- a/lib/csu/powerpc/crt0.c +++ b/lib/csu/powerpc/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.1 2003/02/26 18:50:35 drahn Exp $ */ +/* $OpenBSD: crt0.c,v 1.2 2003/02/28 18:05:51 deraadt Exp $ */ /* $NetBSD: crt0.c,v 1.1 1996/09/12 16:59:02 cgd Exp $ */ /* * Copyright (c) 1995 Christopher G. Demetriou @@ -36,7 +36,7 @@ char **environ; char * __progname = ""; -char __progname_storage[MAXPATHLEN]; +char __progname_storage[NAME_MAX+1]; #ifdef MCRT0 extern void monstartup(u_long, u_long); |