summaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-02-12 21:47:36 +0100
committerLennart Poettering <lennart@poettering.net>2013-02-13 00:56:13 +0100
commit641906e9366891e0ad3e6e38b7396a427678c4cf (patch)
tree47f90e01b79c50ab0839f0a0a10a8fae81dd9a25 /src/locale
parent8d6167101696a28b7ac61b48fd2c1920564c4e90 (diff)
use strneq instead of strncmp
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/localed.c2
1 files changed, 1 insertions, 1 deletions
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;