Skip to content

Commit

Permalink
Let's just use memmove
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Dec 3, 2023
1 parent 2c7f2f8 commit 254008d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/ascii.jou
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ def trim_ascii_whitespace(s: byte*) -> void:
len--

if start != s:
memcpy(s, start, len)
memmove(s, start, len)
s[len] = '\0'

0 comments on commit 254008d

Please sign in to comment.