libs/lmo: fix typo in previous commit
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 19 Aug 2009 22:23:16 +0000 (22:23 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 19 Aug 2009 22:23:16 +0000 (22:23 +0000)
libs/lmo/src/lmo_core.c

index 55696af..6a9623a 100644 (file)
@@ -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;
                }