summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-08-02 13:18:08 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-02 13:18:08 +0000
commit6f2ad931e2b0390c895341c3cd8e3fad2616118f (patch)
tree99d62700ce5cc0686bbfd8b61283449b385b50df /mg.c
parentc4e332073ffbdafd95fb09d80b489f6898a490ba (diff)
downloadperl-6f2ad931e2b0390c895341c3cd8e3fad2616118f.tar.gz
setproctitle() made simpler. (This assumes the string is
\0-terminated: if not, the three-arg form setproctitle(fmt, len, s) should be used. Note len, not len + 1.) BSD-fu from Anton Berezin. p4raw-id: //depot/perl@11548
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index f3fc035952..d517cc5f24 100644
--- a/mg.c
+++ b/mg.c
@@ -2089,7 +2089,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
* but not the "(perl) suffix from the ps(1)
* output, because that's what ps(1) shows if the
* argv[] is modified. */
- setproctitle("-%s", s, len + 1);
+ setproctitle("-%s", s);
# else /* old FreeBSDs, NetBSD, OpenBSD, anyBSD */
/* This doesn't really work if you assume that
* $0 = 'foobar'; will wipe out 'perl' from the $0