summaryrefslogtreecommitdiffhomepage
path: root/libs/lmo
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-19 22:23:16 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-19 22:23:16 +0000
commit9e04d7e6d1015f8fe60289a347bade858fa0fa09 (patch)
tree689c697311cc17bb8b52400821356b36e668d9c9 /libs/lmo
parent83e4af43aa71b2958a429c9f2ebd4a3dd1815841 (diff)
libs/lmo: fix typo in previous commit
Diffstat (limited to 'libs/lmo')
-rw-r--r--libs/lmo/src/lmo_core.c2
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;
}