From 641906e9366891e0ad3e6e38b7396a427678c4cf Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Tue, 12 Feb 2013 21:47:36 +0100 Subject: use strneq instead of strncmp --- src/locale/localed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/locale') diff --git a/src/locale/localed.c b/src/locale/localed.c index 6b1a793d3b..fedcdfb373 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -854,7 +854,7 @@ static int convert_x11_to_vconsole(DBusConnection *connection) { * layout stripped off. */ if (x > 0 && strlen(a[1]) == x && - strncmp(state.x11_layout, a[1], x) == 0) + strneq(state.x11_layout, a[1], x)) matching = 5; else { size_t w; -- cgit v1.2.3-54-g00ecf