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 }