Changes in uspace/app/bdsh/cmds/modules/cat/cat.c [1abcf1d:7c3fb9b] in mainline
- File:
-
- 1 edited
-
uspace/app/bdsh/cmds/modules/cat/cat.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cat/cat.c
r1abcf1d 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.
