Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3357 → Rev 3358

/trunk/uspace/app/bdsh/cmds/modules/cat/cat.c
94,6 → 94,7
 
total = lseek(fd, 0, SEEK_END);
lseek(fd, 0, SEEK_SET);
 
if (NULL == (buff = (char *) malloc(blen + 1))) {
close(fd);
printf("Unable to allocate enough memory to read %s\n",
171,8 → 172,6
return CMD_FAILURE;
}
 
i = optind;
 
if (buffer <= 0)
buffer = CAT_DEFAULT_BUFLEN;