Ignore:
Timestamp:
Jul 6, 2020, 9:22:43 PM (4 years ago)
Author:
coas-nagasima
Message:

ntstdio_snprintfの動作が間違っていたのを修正。
Webサーバーを更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/ntshell/ntshell/util/ntstdio.c

    r433 r436  
    292292                return;
    293293        put_buf->outptr[handle->pos] = (char)c;
    294         handle->pos++;
    295294}
    296295
     
    307306        handle.exinf = &exinf;
    308307        exinf.outptr = buf;
    309         exinf.len = len;
     308        exinf.len = len - 1; /* null char */
    310309
    311310        va_start(arp, fmt);
     
    314313
    315314        /* 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 */
    318317}
    319318
Note: See TracChangeset for help on using the changeset viewer.