Fixed bug.

This commit is contained in:
irungentoo 2013-08-31 12:23:20 -04:00
parent 5b18a90eaf
commit 9ef4bab51d

View File

@ -383,7 +383,7 @@ uint16_t getself_name(Messenger *m, uint8_t *name, uint16_t nlen)
}
len = MIN(nlen, m->name_length);
memcpy(name, m->name, m->name_length);
memcpy(name, m->name, len);
return len;
}