Changes in uspace/lib/c/generic/io/vsnprintf.c [1433ecda:7c3fb9b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/vsnprintf.c
r1433ecda r7c3fb9b 70 70 71 71 if (left == 1) { 72 /* We have only one free byte left in buffer 72 /* 73 * We have only one free byte left in buffer 73 74 * -> store trailing zero 74 75 */ … … 79 80 80 81 if (left <= size) { 81 /* We do not have enough space for the whole string 82 /* 83 * We do not have enough space for the whole string 82 84 * with the trailing zero => print only a part 83 85 * of string … … 92 94 } 93 95 94 /* Put trailing zero at end, but not count it 96 /* 97 * Put trailing zero at end, but not count it 95 98 * into data->len so it could be rewritten next time 96 99 */ … … 104 107 data->len += size; 105 108 106 /* Put trailing zero at end, but not count it 109 /* 110 * Put trailing zero at end, but not count it 107 111 * into data->len so it could be rewritten next time 108 112 */ … … 140 144 141 145 if (left == 1) { 142 /* We have only one free byte left in buffer 146 /* 147 * We have only one free byte left in buffer 143 148 * -> store trailing zero 144 149 */ … … 154 159 } 155 160 156 /* Put trailing zero at end, but not count it 161 /* 162 * Put trailing zero at end, but not count it 157 163 * into data->len so it could be rewritten next time 158 164 */
Note:
See TracChangeset
for help on using the changeset viewer.