Changeset 34 for trunk/src/sh_error.c
- Timestamp:
- May 19, 2006, 8:09:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_error.c
r27 r34 1144 1144 */ 1145 1145 export_block = 1; 1146 ex_len = 64 + sl_strlen(lmsg->msg) + 1; 1146 /* ex_len = 64 + sl_strlen(lmsg->msg) + 1; */ 1147 ex_len = sl_strlen(lmsg->msg); 1148 if (sl_ok_adds(ex_len, 65)) 1149 ex_len = 64 + ex_len + 1; 1147 1150 ex_msg = SH_ALLOC (ex_len); 1148 1151 … … 1497 1500 /*@i@*/required = sl_vsnprintf(&(lmsg->msg[len]), 1498 1501 (lmsg->msg_len - len), lmsg->format, vl); 1499 if ( (required + len) > (lmsg->msg_len - 4) ) 1502 if ((required >= 0) && 1503 sl_ok_adds(required, len) && 1504 sl_ok_adds((required+len), 4) && 1505 ((required + len) > (lmsg->msg_len - 4)) ) 1500 1506 { 1501 1507 /*@i@*/p = SH_ALLOC(required + len + 4);
Note:
See TracChangeset
for help on using the changeset viewer.