commit - 63bda7de11bdf4875923757d0987f25f5c05c76c
commit + 467e76aa3296be5a811d53887d5caa41f827aaa8
blob - f8ab651131e425881fda048fdd6398ec31f46604
blob + cc6641405b4eee17199b27bbb6127f7ddfa0f184
--- src/ngircd/client.c
+++ src/ngircd/client.c
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
- * $Id: client.c,v 1.60 2002/09/03 18:54:31 alex Exp $
+ * $Id: client.c,v 1.61 2002/10/04 12:39:58 alex Exp $
*
* client.c: Management aller Clients
*
#include <exp.h>
+#define GETID_LEN (CLIENT_NICK_LEN-1) + 1 + (CLIENT_USER_LEN-1) + 1 + (CLIENT_HOST_LEN-1) + 1
+
+
LOCAL CLIENT *This_Server, *My_Clients;
-LOCAL CHAR GetID_Buffer[CLIENT_ID_LEN];
+LOCAL CHAR GetID_Buffer[GETID_LEN];
LOCAL INT Count PARAMS(( CLIENT_TYPE Type ));
if( Client->type == CLIENT_SERVER ) return Client->id;
- sprintf( GetID_Buffer, "%s!%s@%s", Client->id, Client->user, Client->host );
+ snprintf( GetID_Buffer, GETID_LEN, "%s!%s@%s", Client->id, Client->user, Client->host );
return GetID_Buffer;
} /* Client_Mask */