Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3841 → Rev 3842

/trunk/kernel/generic/src/syscall/syscall.c
62,7 → 62,6
*/
static unative_t sys_klog(int fd, const void * buf, size_t count)
{
size_t i;
char *data;
int rc;
 
70,7 → 69,7
return ELIMIT;
if (count > 0) {
data = (char *) malloc(count, 0);
data = (char *) malloc(count + 1, 0);
if (!data)
return ENOMEM;
79,9 → 78,9
free(data);
return rc;
}
for (i = 0; i < count; i++)
putchar(data[i]);
data[count] = 0;
printf("%s", data);
free(data);
} else
klog_update();