Changeset 436 for EcnlProtoTool/trunk/ntshell/ntshell
- Timestamp:
- Jul 6, 2020, 9:22:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/ntshell/ntshell/util/ntstdio.c
r433 r436 292 292 return; 293 293 put_buf->outptr[handle->pos] = (char)c; 294 handle->pos++;295 294 } 296 295 … … 307 306 handle.exinf = &exinf; 308 307 exinf.outptr = buf; 309 exinf.len = len ;308 exinf.len = len - 1; /* null char */ 310 309 311 310 va_start(arp, fmt); … … 314 313 315 314 /* Terminate output string with a \0 */ 316 buf[ handle.pos] = '\0';317 return result; 315 buf[result] = '\0'; 316 return result; /* not count null char */ 318 317 } 319 318
Note:
See TracChangeset
for help on using the changeset viewer.