Changeset 9c70ed6 in mainline
- Timestamp:
- 2009-11-16T18:00:32Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1787e527, 5a4fef9, ffe94f7
- Parents:
- a217358
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
ra217358 r9c70ed6 319 319 320 320 if (size > PAGE_SIZE) 321 return ELIMIT;321 return (unative_t) ELIMIT; 322 322 323 323 if (size > 0) { 324 324 data = (char *) malloc(size + 1, 0); 325 325 if (!data) 326 return ENOMEM;326 return (unative_t) ENOMEM; 327 327 328 328 rc = copy_from_uspace(data, buf, size); 329 329 if (rc) { 330 330 free(data); 331 return rc;331 return (unative_t) rc; 332 332 } 333 333 data[size] = 0;
Note:
See TracChangeset
for help on using the changeset viewer.