From 04b0fdd6d3575f116eea623e7dc47baf10f5da8e Mon Sep 17 00:00:00 2001 From: Petr Baudis <pasky@ucw.cz> Date: Thu, 1 Mar 2012 03:40:18 +0100 Subject: [PATCH] compctld: Fix the begins_with() macro --- compctld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compctld.c b/compctld.c index 45d2f34..25aa917 100644 --- a/compctld.c +++ b/compctld.c @@ -14,7 +14,7 @@ #include "common.h" -#define begins_with(s_, a_) (!strncmp(s_, a_, sizeof(a_))) +#define begins_with(s_, a_) (!strncmp(s_, a_, sizeof(s_) - 1)) void -- GitLab