commit - 4ab688c5e82281c4d9ad2a4498523b1722c1f738
commit + 80d0613bf256f48b1dd20bface4c52b57cff8d28
blob - 25cecaff8e90c13e350189dad7e39db2883c0932
blob + 5503344d1aa58702e89b4197d29729d64d357743
--- src/ngircd/irc-write.c
+++ src/ngircd/irc-write.c
#else
va_start(ap);
#endif
- vsnprintf(buffer, 1000, Format, ap);
+ vsnprintf(buffer, sizeof(buffer), Format, ap);
va_end(ap);
IRC_SetPenalty(Client, 2);
#else
va_start(ap);
#endif
- vsnprintf(buffer, 1000, Format, ap);
+ vsnprintf(buffer, sizeof(buffer), Format, ap);
va_end(ap);
return IRC_WriteStrClientPrefix(Client, Client_ThisServer(),
#else
va_start( ap );
#endif
- vsnprintf( buffer, 1000, Format, ap );
+ vsnprintf(buffer, sizeof(buffer), Format, ap);
va_end( ap );
return Conn_WriteStr(Client_Conn(Client_NextHop(Client)), ":%s %s",
#else
va_start( ap );
#endif
- vsnprintf( buffer, 1000, Format, ap );
+ vsnprintf(buffer, sizeof(buffer), Format, ap);
va_end( ap );
IRC_WriteStrChannelPrefix(Client, Chan, Client_ThisServer(),
#else
va_start( ap );
#endif
- vsnprintf( buffer, 1000, Format, ap );
+ vsnprintf(buffer, sizeof(buffer), Format, ap);
va_end( ap );
Conn_ClearFlags( );
#else
va_start( ap );
#endif
- vsnprintf( buffer, 1000, Format, ap );
+ vsnprintf(buffer, sizeof(buffer), Format, ap);
va_end( ap );
IRC_WriteStrServersPrefix(ExceptOf, Client_ThisServer(), "%s", buffer);
#else
va_start( ap );
#endif
- vsnprintf( buffer, 1000, Format, ap );
+ vsnprintf(buffer, sizeof(buffer), Format, ap);
va_end( ap );
IRC_WriteStrServersPrefixFlag( ExceptOf, Prefix, '\0', "%s", buffer );
#else
va_start( ap );
#endif
- vsnprintf( buffer, 1000, Format, ap );
+ vsnprintf(buffer, sizeof(buffer), Format, ap);
va_end( ap );
IRC_WriteStrServersPrefixFlag_CB(ExceptOf, Prefix, Flag,
#else
va_start( ap );
#endif
- vsnprintf( buffer, 1000, Format, ap );
+ vsnprintf(buffer, sizeof(buffer), Format, ap);
va_end( ap );
Conn_ClearFlags( );
#else
va_start(ap);
#endif
- vsnprintf(msg, 1000, Format, ap);
+ vsnprintf(msg, sizeof(msg), Format, ap);
va_end(ap);
for (to=Client_First(); to != NULL; to=Client_Next(to)) {