From 9488612057686ef69ca2ff3edf14a0230f80c938 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 6 Jul 2000 20:36:23 +0000 Subject: [PATCH] Use setproctitle correctly --- clients/gopher/go500.c | 2 +- clients/gopher/go500gw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/gopher/go500.c b/clients/gopher/go500.c index ca03ce0a98..34b3e1a5ef 100644 --- a/clients/gopher/go500.c +++ b/clients/gopher/go500.c @@ -213,7 +213,7 @@ main( int argc, char **argv ) } #ifdef LDAP_PROCTITLE - setproctitle( hp == NULL ? inet_ntoa( from.sin_addr ) : + setproctitle( "%s", hp == NULL ? inet_ntoa( from.sin_addr ) : hp->h_name ); #endif } diff --git a/clients/gopher/go500gw.c b/clients/gopher/go500gw.c index dfda607001..fc9fa853ee 100644 --- a/clients/gopher/go500gw.c +++ b/clients/gopher/go500gw.c @@ -236,7 +236,7 @@ main (int argc, char **argv ) } #ifdef LDAP_PROCTITLE - setproctitle( hp == NULL ? inet_ntoa( from.sin_addr ) : + setproctitle( "%s", hp == NULL ? inet_ntoa( from.sin_addr ) : hp->h_name ); #endif } -- 2.39.5