]> git.sur5r.net Git - openldap/commitdiff
Use setproctitle correctly
authorKurt Zeilenga <kurt@openldap.org>
Thu, 6 Jul 2000 20:36:23 +0000 (20:36 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 6 Jul 2000 20:36:23 +0000 (20:36 +0000)
clients/gopher/go500.c
clients/gopher/go500gw.c

index ca03ce0a98a9614739bc039449f15329ab71c4eb..34b3e1a5effc5c93311949a186a5e91716225f23 100644 (file)
@@ -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
                }
index dfda607001f42358689535db12433571c8e4991e..fc9fa853ee784f3227122f6865941ae7723cf17f 100644 (file)
@@ -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
                }