Changeset 996
- Timestamp:
- 07/09/20 17:26:44 (4 years ago)
- Location:
- cpp/frams/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/sstring-simple.cpp
r989 r996 80 80 if (newlength >= allocated) 81 81 { 82 logMessage("SString", "endWrite", LOG_CRITICAL, "newlength >= allocated"); 82 83 assert(newlength < allocated); 83 84 if (allocated == 0) return; … … 286 287 } 287 288 n = strlen(buf); //pretend vsnprintf() or vsprintf() was OK to exit the endless loop 288 289 } 289 290 #endif 290 291 … … 301 302 #endif 302 303 size *= 2; /* twice the old size */ 303 }304 } 304 305 } 305 306 -
cpp/frams/util/sstring.cpp
r989 r996 226 226 if ((newlength >= (buf->size + 1)) || (buf->size == 0)) 227 227 { 228 logMessage("SString", "endWrite", LOG_CRITICAL, "newlength >= allocated or nothing allocated"); 228 229 assert((newlength < (buf->size + 1)) && (buf->size > 0)); 229 230 if (buf->size == 0) return;
Note: See TracChangeset
for help on using the changeset viewer.