Add null terminator to dest in strcpy()
This commit is contained in:
@ -36,6 +36,7 @@ strcpy:
|
|||||||
inc rdi
|
inc rdi
|
||||||
inc rcx
|
inc rcx
|
||||||
jmp .loop
|
jmp .loop
|
||||||
|
mov byte [rdi], 0x0
|
||||||
|
|
||||||
.0f:
|
.0f:
|
||||||
cmp rcx, 0
|
cmp rcx, 0
|
||||||
|
Reference in New Issue
Block a user