Fix test msg/comment (size for strlcpy 8=>5)
This commit is contained in:
@ -61,7 +61,7 @@ section .rodata
|
||||
msgStrcpy db "strcpy(strBuff, str1): %s",10,0
|
||||
msgStrlcpy db "strlcpy(strBuff2, str1, -1): (%d): %s",10,0
|
||||
msgStrlcpy2 db "strlcpy(strBuff2, str1, 0): (%d): %s",10,0
|
||||
msgStrlcpy3 db "strlcpy(strBuff2, str1, 8): (%d): %s",10,0
|
||||
msgStrlcpy3 db "strlcpy(strBuff2, str1, 5): (%d): %s",10,0
|
||||
msgStrcat db "strcat(strBuff, str3): %s",10,0
|
||||
msgStrlen3 db "strlen(strBuff): %d",10,0
|
||||
msgTolower db "tolower(str1[0]): %c",10,0
|
||||
@ -242,7 +242,7 @@ main:
|
||||
lea rdi, [rel msgStrlcpy2]
|
||||
lea rdx, [rel strBuff2]
|
||||
call printf
|
||||
; TEST: strlcpy(strBuff2, str1, 8)
|
||||
; TEST: strlcpy(strBuff2, str1, 5)
|
||||
lea rdi, [rel strBuff2]
|
||||
lea rsi, [rel str1]
|
||||
mov rdx, 5
|
||||
|
Reference in New Issue
Block a user