Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/vsnprintf.c

    r7c3fb9b r1433ecda  
    7070
    7171        if (left == 1) {
    72                 /*
    73                  * We have only one free byte left in buffer
     72                /* We have only one free byte left in buffer
    7473                 * -> store trailing zero
    7574                 */
     
    8079
    8180        if (left <= size) {
    82                 /*
    83                  * We do not have enough space for the whole string
     81                /* We do not have enough space for the whole string
    8482                 * with the trailing zero => print only a part
    8583                 * of string
     
    9492                }
    9593
    96                 /*
    97                  * Put trailing zero at end, but not count it
     94                /* Put trailing zero at end, but not count it
    9895                 * into data->len so it could be rewritten next time
    9996                 */
     
    107104        data->len += size;
    108105
    109         /*
    110          * Put trailing zero at end, but not count it
     106        /* Put trailing zero at end, but not count it
    111107         * into data->len so it could be rewritten next time
    112108         */
     
    144140
    145141                if (left == 1) {
    146                         /*
    147                          * We have only one free byte left in buffer
     142                        /* We have only one free byte left in buffer
    148143                         * -> store trailing zero
    149144                         */
     
    159154        }
    160155
    161         /*
    162          * Put trailing zero at end, but not count it
     156        /* Put trailing zero at end, but not count it
    163157         * into data->len so it could be rewritten next time
    164158         */
Note: See TracChangeset for help on using the changeset viewer.