Changeset 7c3fb9b in mainline for uspace/app/bdsh/cmds/modules/cat/cat.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/app/bdsh/cmds/modules/cat/cat.c
rfac0ac7 r7c3fb9b 274 274 break; 275 275 } else if (c == U_SPECIAL && offset + 2 >= (size_t)bytes) { 276 /* If an extended character is cut off due to the size of the buffer, 277 we will copy it over to the next buffer so it can be read correctly. */ 276 /* 277 * If an extended character is cut off due to the size of the buffer, 278 * we will copy it over to the next buffer so it can be read correctly. 279 */ 278 280 copied_bytes = bytes - offset + 1; 279 281 memcpy(buff, buff + offset - 1, copied_bytes);
Note:
See TracChangeset
for help on using the changeset viewer.