libs/lmo: fix typo in previous commit
This commit is contained in:
parent
83e4af43aa
commit
9e04d7e6d1
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ int lmo_lookup(lmo_archive_t *ar, const char *key, char *dest, int len)
|
|||
{
|
||||
copy_len = ((len - 1) > entry->length) ? entry->length : (len - 1);
|
||||
memcpy(dest, &ar->mmap[entry->offset], copy_len);
|
||||
data[copy_len] = '\0';
|
||||
dest[copy_len] = '\0';
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue