summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/src/po2lmo.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/src/po2lmo.c')
-rw-r--r--modules/luci-base/src/po2lmo.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/luci-base/src/po2lmo.c b/modules/luci-base/src/po2lmo.c
index 5f398c266e..0a04e9ba17 100644
--- a/modules/luci-base/src/po2lmo.c
+++ b/modules/luci-base/src/po2lmo.c
@@ -16,7 +16,7 @@
* limitations under the License.
*/
-#include "template_lmo.h"
+#include "lib/lmo.h"
static void die(const char *msg)
{
@@ -169,8 +169,11 @@ static void print_msg(struct msg *msg, FILE *out)
else
snprintf(key, sizeof(key), "%s", msg->id);
- key_id = sfh_hash(key, strlen(key));
- val_id = sfh_hash(msg->val[i], strlen(msg->val[i]));
+ len = strlen(key);
+ key_id = sfh_hash(key, len, len);
+
+ len = strlen(msg->val[i]);
+ val_id = sfh_hash(msg->val[i], len, len);
if (key_id != val_id) {
n_entries++;