From 210b973708d62137b8283d43908292039056f415 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 3 Oct 2011 12:44:06 +0200 Subject: [PATCH] do not memcmp padding bytes in config_diff --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index 4f3a3cd..db69f9a 100644 --- a/config.c +++ b/config.c @@ -223,7 +223,7 @@ config_diff(struct blob_attr **tb1, struct blob_attr **tb2, if (blob_len(tb1[i]) != blob_len(tb2[i])) goto mark; - if (memcmp(tb1[i], tb2[i], blob_pad_len(tb1[i])) != 0) + if (memcmp(tb1[i], tb2[i], blob_raw_len(tb1[i])) != 0) goto mark; continue; -- 2.25.1