Assign TAG_ALLOCATED in m->put()

This commit is contained in:
Joerg Wunsch
2024-03-21 11:00:39 +01:00
parent 708403bbda
commit 1ae394f1ed

View File

@@ -271,6 +271,7 @@ int avr_initmem(const AVRPART *p);
if (offset + len > (unsigned)$self->size)
len = $self->size - offset;
memcpy($self->buf + offset, in, len);
memset($self->tags + offset, TAG_ALLOCATED, len);
return len;
}
}