mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
Fix some more bugs (coverity you're a life saver)
This commit is contained in:
parent
560b45dd16
commit
adc9e7bf22
2 changed files with 2 additions and 2 deletions
2
ir.c
2
ir.c
|
@ -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
2
util.c
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue