summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-08-20 06:26:46 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-08-20 06:26:46 +0000
commit1e5f8e30072031743b6e90640a21232f2f1b46de (patch)
tree2ca5fed295dcd8613fc384c0d4e84362f3bc7f24 /legacy
parent386f4736f50d212c2d7e373bebfb86ad8a5c76a9 (diff)
Embryo: be sure that the string buffer is always NULL terminated
SVN revision: 75443
Diffstat (limited to 'legacy')
-rw-r--r--legacy/embryo/src/bin/embryo_cc_sc1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy/embryo/src/bin/embryo_cc_sc1.c b/legacy/embryo/src/bin/embryo_cc_sc1.c
index 371a1c930d..3a5b3d9424 100644
--- a/legacy/embryo/src/bin/embryo_cc_sc1.c
+++ b/legacy/embryo/src/bin/embryo_cc_sc1.c
@@ -653,6 +653,8 @@ setconfig(char *root)
653 char *ptr; 653 char *ptr;
654 int len; 654 int len;
655 655
656 path[sizeof(path) - 1] = 0;
657
656 /* add the default "include" directory */ 658 /* add the default "include" directory */
657 if (root) 659 if (root)
658 { 660 {