Changeset 7c3fb9b in mainline for uspace/lib/c/generic/io/vsnprintf.c
- Timestamp:
- 2018-05-17T08:29:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/vsnprintf.c
rfac0ac7 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.