Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/cat/cat.c

    r06e724e1 r3cefd70  
    164164{
    165165        int fd, bytes = 0, count = 0, reads = 0;
     166        off64_t total = 0;
    166167        char *buff = NULL;
    167168        int i;
     
    173174                return 1;
    174175        }
     176
     177        total = lseek(fd, 0, SEEK_END);
     178        lseek(fd, 0, SEEK_SET);
    175179
    176180        if (NULL == (buff = (char *) malloc(blen + 1))) {
Note: See TracChangeset for help on using the changeset viewer.