summaryrefslogtreecommitdiff
path: root/src/bin/embryo
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-13 17:14:53 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-13 17:14:53 +0900
commit970968daabc35f24ec4a7829fa7515e8be3acb3e (patch)
tree92ee4a4ed6691b466259369ba2de234289a3a4e1 /src/bin/embryo
parent84e032a252e6a4a619e5acdc6deeadea35835059 (diff)
embyro-cc - fix coverity overruun issue
overrun in fatal msg access - fix CID 1039315
Diffstat (limited to 'src/bin/embryo')
-rw-r--r--src/bin/embryo/embryo_cc_sc5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/embryo/embryo_cc_sc5.c b/src/bin/embryo/embryo_cc_sc5.c
index ac8eaa3696..ff9a721869 100644
--- a/src/bin/embryo/embryo_cc_sc5.c
+++ b/src/bin/embryo/embryo_cc_sc5.c
@@ -80,6 +80,7 @@ error(int number, ...)
80 } 80 }
81 else if (number < 200) 81 else if (number < 200)
82 { 82 {
83 if (number > 107) number = 107;
83 msg = fatalmsg[number - 100]; 84 msg = fatalmsg[number - 100];
84 errnum++; /* a fatal error also counts as an error */ 85 errnum++; /* a fatal error also counts as an error */
85 } 86 }