2 Sep 2005 05:27
[NeoStats-Devel] [Commits] r95 - branches/3.0
Author: DNB
Date: Fri Sep 2 11:26:56 2005
New Revision: 95
Modified:
branches/3.0/TriviaQues.c
Log:
fix more memory problems
Modified: branches/3.0/TriviaQues.c
==============================================================================
--- branches/3.0/TriviaQues.c (original)
+++ branches/3.0/TriviaQues.c Fri Sep 2 11:26:56 2005
<at> <at> -628,7 +628,7 <at> <at>
{
char *out, *tmpcolour, *tmpunseen, *tmpstr;
Questions *qe;
- int random, i;
+ int random, i, qlen, charcount=0, tucount, tccount;
if (tc->curquest == NULL)
{
<at> <at> -658,10 +658,14 <at> <at>
strlcat(tmpunseen, "0", BUFSIZE);
ircsnprintf(tmpstr, BUFSIZE, "%d", tc->background);
strlcat(tmpunseen, tmpstr, BUFSIZE);
- /* obscure question using definded channel colours, and send to channel */
+ /* obscure question using defined channel colours, and send to channel */
out = ns_calloc (BUFSIZE+1);
+ tucount = (int)strlen(tmpunseen);
(Continue reading)
RSS Feed