From f82c77843ee0556fec28071203674d7eeb7c8544 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 9 Nov 2013 10:15:35 +0900 Subject: [PATCH] embryo - embryo_cc: fix buffer overrun warning gcc warning was right. it's a pretty smart cookie too. --- src/bin/embryo/embryo_cc_sc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c index 0340d35cbb..37e71d4f76 100644 --- a/src/bin/embryo/embryo_cc_sc1.c +++ b/src/bin/embryo/embryo_cc_sc1.c @@ -681,7 +681,7 @@ setconfig(char *root) } /* Make sure we have enough space for the trailing DIRSEP_CHAR */ - if (strlen(path) == sizeof(path) - 1) + if (strlen(path) == (sizeof(path) - 1 -1)) { len = strlen(path); path[len] = DIRSEP_CHAR;