From fd59d9f29838c3888168554c774003e7ad6d33b0 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 20 Jun 2013 22:40:10 -0400 Subject: Add hasprefix macro to check prefixes of fixed length --- src/shared/logs-show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/logs-show.c') diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index 40efad3273..89f67f52c0 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -438,7 +438,7 @@ static int output_export( /* We already printed the boot id, from the data in * the header, hence let's suppress it here */ if (length >= 9 && - memcmp(data, "_BOOT_ID=", 9) == 0) + hasprefix(data, "_BOOT_ID=")) continue; if (!utf8_is_printable(data, length)) { -- cgit v1.2.3-54-g00ecf