Skip to content

Commit

Permalink
Let's just use memmove (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Dec 3, 2023
1 parent fed9b0f commit 06bdf5e
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 06bdf5e

Please sign in to comment.