You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the result of memcpy() is undefined when the source and destination overlap, this should use memmove() instead. One a related note the code to grow a string seems to be duplicated in a different form in resize(), perhaps that could call grow() instead.
The text was updated successfully, but these errors were encountered:
I saw the link to this project on hacker news, it looks interesting. One thing I noticed was that in
grow()
it hasthe result of
memcpy()
is undefined when the source and destination overlap, this should usememmove()
instead. One a related note the code to grow a string seems to be duplicated in a different form inresize()
, perhaps that could callgrow()
instead.The text was updated successfully, but these errors were encountered: