Fix some more bugs (coverity you're a life saver)

This commit is contained in:
Dale Weiler 2013-06-22 02:05:04 +00:00
parent 560b45dd16
commit adc9e7bf22
2 changed files with 2 additions and 2 deletions

2
ir.c
View file

@ -3910,7 +3910,7 @@ void ir_instr_dump(ir_instr *in, char *ind,
return;
}
strncat(ind, "\t", IND_BUFSZ);
strncat(ind, "\t", IND_BUFSZ-1);
if (in->_ops[0] && (in->_ops[1] || in->_ops[2])) {
ir_value_dump(in->_ops[0], oprintf);

2
util.c
View file

@ -440,7 +440,7 @@ static GMQCC_INLINE void mt_generate(void) {
* = 2*2*3*3*11])
*/
i = MT_SPACE;
while (i < MT_SIZE - 1) {
while (i < MT_SIZE-2) {
/*
* We expand this 11 times .. manually, no macros are required
* here. This all fits in the CPU cache.