diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2003-07-01 09:45:35 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2003-07-01 09:45:35 +0000 |
| commit | 9470460d7a8e4fc658c8d760118eb13446ea1180 (patch) | |
| tree | d54967314dcf5f85a3bded3383aef9ce097c8a6f /lib | |
| parent | 6b3855051283b5c799589c0e9da08f65f457c03e (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/gen/setproctitle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/setproctitle.c b/lib/libc/gen/setproctitle.c index 332453cfa921..cd705fb60946 100644 --- a/lib/libc/gen/setproctitle.c +++ b/lib/libc/gen/setproctitle.c @@ -86,6 +86,7 @@ setproctitle(const char *fmt, ...) obuf = malloc(SPT_BUFSIZE); if (obuf == NULL) return; + *obuf = '\0'; } va_start(ap, fmt); |
