diff options
Diffstat (limited to 'libs')
-rw-r--r-- | libs/lmo/src/lmo_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/lmo/src/lmo_core.c b/libs/lmo/src/lmo_core.c index 55696af9c7..6a9623aa9f 100644 --- a/libs/lmo/src/lmo_core.c +++ b/libs/lmo/src/lmo_core.c @@ -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; } |