Projects STRLCPY criu Commits 9b349604
🤬
  • ■ ■ ■ ■ ■
    criu/log.c
    skipped 70 lines
    71 71   
    72 72   gettimeofday(&t, NULL);
    73 73   timediff(&start, &t);
    74  - snprintf(buffer, TS_BUF_OFF, "(%02u.%06u)", (unsigned)t.tv_sec, (unsigned)t.tv_usec);
     74 + snprintf(buffer, TS_BUF_OFF, "(%02u.%06u", (unsigned)t.tv_sec, (unsigned)t.tv_usec);
     75 + buffer[TS_BUF_OFF - 2] = ')'; /* this will overwrite the last digit if tv_sec>=100 */
    75 76   buffer[TS_BUF_OFF - 1] = ' '; /* kill the '\0' produced by snprintf */
    76 77  }
    77 78   
    skipped 348 lines
Please wait...
Page is in error, reload to recover