@@ -348,7 +348,7 @@ Strinsert_char(Str s, int pos, char c)
{
inti;
STR_LENGTH_CHECK(s);
if(pos<0)
if(pos<0||s->length<pos)
return;
if(s->length+2>s->area_size)
Strgrow(s);
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.