summaryrefslogtreecommitdiff
path: root/src/bin/embryo
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-09 10:15:35 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-09 10:15:35 +0900
commitf82c77843ee0556fec28071203674d7eeb7c8544 (patch)
tree89bbbf3c358f859fb54f2b8d39895415f02df4b0 /src/bin/embryo
parent85a86e77f75a7f3c8c1e09a5f6c7aea176d1d5df (diff)
embryo - embryo_cc: fix buffer overrun warning
gcc warning was right. it's a pretty smart cookie too.
Diffstat (limited to 'src/bin/embryo')
-rw-r--r--src/bin/embryo/embryo_cc_sc1.c2
1 files changed, 1 insertions, 1 deletions
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)
681 } 681 }
682 682
683 /* Make sure we have enough space for the trailing DIRSEP_CHAR */ 683 /* Make sure we have enough space for the trailing DIRSEP_CHAR */
684 if (strlen(path) == sizeof(path) - 1) 684 if (strlen(path) == (sizeof(path) - 1 -1))
685 { 685 {
686 len = strlen(path); 686 len = strlen(path);
687 path[len] = DIRSEP_CHAR; 687 path[len] = DIRSEP_CHAR;