String problem
#1

Hi'.
Today, I'm facing a weird bug with string. I've a function called GenerateRandomString which is generating a random string. It's working fine. You will what is the problem :
PHP код:
main()
{
    
#define MAX_TEST 1
    
new 
        
str[20],
        
str2[20];
    print(
"[DEBUG] Lower letters");
    for(new 
iMAX_TESTi++)
    {
        
GenerateRandomString(str);
        
GenerateRandomString(str2);
        
printf("%s    -> %i"strsizeof(str));
        
printf("%s    -> %i"str2sizeof(str2));
    }

Output :
Код:
[12:15:06] [DEBUG] Lettres minuscules
[12:15:06] xlmqeyknjmhpsdrcgpfm    -> 20
[12:15:06] hczqyymrtkpcrejobxjxxlmqeyknjmhpsdrcgpfm    -> 20
So.. How can solve this bug and how can be possible that happens ?
Reply


Messages In This Thread
String problem - by Dayrion - 12.03.2017, 11:24
Re: String problem - by Toroi - 12.03.2017, 11:28
Re: String problem - by Dayrion - 12.03.2017, 11:33
Re: String problem - by Nero_3D - 12.03.2017, 11:34
Re: String problem - by Dayrion - 12.03.2017, 15:24
Re: String problem - by SyS - 12.03.2017, 15:28

Forum Jump:


Users browsing this thread: 1 Guest(s)