Skip to content

Commit ed7cf2c

Browse files
authored
Update test.pwn
1 parent 4ddb967 commit ed7cf2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pawn-tests/test.pwn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Test:TestInvalidCustomArgs() {
2626
forward OnPassswordHash(playerid);
2727
public OnPassswordHash(playerid){
2828
printf("***OnPassswordHash");
29-
new dest[60];
29+
new dest[BCRYPT_HASH_LENGTH + 1];
3030
bcrypt_get_hash(dest);
3131
printf("hash is %s",dest);
3232
bcrypt_verify(playerid,"OnPassswordVerifyValid","text",dest);
@@ -54,7 +54,7 @@ public OnPassswordHash3(playerid,int1,str1[],str2[],Float:float1){
5454
forward OnPassswordHash2(playerid);
5555
public OnPassswordHash2(playerid){
5656
printf("***OnPassswordHash2");
57-
new dest[60];
57+
new dest[BCRYPT_HASH_LENGTH + 1];
5858
bcrypt_get_hash(dest);
5959
printf("hash is %s",dest);
6060
bcrypt_verify(playerid,"OnPassswordVerifyInvalid","text",dest);
@@ -72,4 +72,4 @@ public OnPassswordVerifyInvalid(playerid,bool:success){
7272
printf("***OnPassswordVerifyInvalid");
7373
ASSERT(success == false);
7474
print("\nPASS!");
75-
}
75+
}

0 commit comments

Comments
 (0)