Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I don't even

Name: Anonymous 2010-07-17 18:35

printf("%s\n",word);
    for(i=0;i<11;i++)
    {
        trslt[i]=result[i+3];
        rsltlower[i]=tolower(trslt[i]);
    }
    printf("%s\n",word);

Can anyone tell my why the first printf statement prints the value of word, but the second prints only a newline?

Name: Anonymous 2010-07-17 18:53

One of either trslt or rsltlower arrays is not initialized correctly and the array writes overflow into the word buffer.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List