diff options
| author | Florian Westphal <fw@strlen.de> | 2005-04-16 09:19:49 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2005-04-16 09:19:49 +0000 |
| commit | b4363162cede49f959d0d11f3d08d05e9854c740 (patch) | |
| tree | 24ef2a9e35a65e862c914bf273dfc59327624db0 | |
| parent | 873edc6311b4b2501e2f9a5103a0118ff5c6d8cc (diff) | |
| download | ngircd-b4363162cede49f959d0d11f3d08d05e9854c740.tar.gz ngircd-b4363162cede49f959d0d11f3d08d05e9854c740.zip | |
s/malloc(x*y)/calloc(x,y)/
| -rw-r--r-- | src/ngircd/conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index d334b169..663ec6f8 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -16,7 +16,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conn.c,v 1.146 2005/03/20 13:54:06 fw Exp $"; +static char UNUSED id[] = "$Id: conn.c,v 1.147 2005/04/16 09:19:49 fw Exp $"; #include "imp.h" #include <assert.h> @@ -121,7 +121,7 @@ Conn_Init( void ) /* konfiguriertes Limit beachten */ if( Pool_Size > Conf_MaxConnections ) Pool_Size = Conf_MaxConnections; } - My_Connections = (CONNECTION *)malloc( sizeof( CONNECTION ) * Pool_Size ); + My_Connections = (CONNECTION *) calloc( Pool_Size, sizeof( CONNECTION ) ); if( ! My_Connections ) { /* Speicher konnte nicht alloziert werden! */ |