~ubuntu-branches/ubuntu/quantal/libarchive/quantal

« back to all changes in this revision

Viewing changes to contrib/untar.c

  • Committer: Package Import Robot
  • Author(s): Andres Mejia
  • Date: 2012-02-23 19:29:24 UTC
  • mfrom: (8.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120223192924-73n4iedok5fwgsyr
Tags: 3.0.3-5
* Detect if locales or locales-all is installed for use with test suite.
* Bump Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
{
39
39
        int i = 0;
40
40
 
41
 
        while (*p < '0' || *p > '7') {
 
41
        while ((*p < '0' || *p > '7') && n > 0) {
42
42
                ++p;
43
43
                --n;
44
44
        }
140
140
                if (bytes_read < 512) {
141
141
                        fprintf(stderr,
142
142
                            "Short read on %s: expected 512, got %d\n",
143
 
                            path, bytes_read);
 
143
                            path, (int)bytes_read);
144
144
                        return;
145
145
                }
146
146
                if (is_end_of_archive(buff)) {
183
183
                        if (bytes_read < 512) {
184
184
                                fprintf(stderr,
185
185
                                    "Short read on %s: Expected 512, got %d\n",
186
 
                                    path, bytes_read);
 
186
                                    path, (int)bytes_read);
187
187
                                return;
188
188
                        }
189
189
                        if (filesize < 512)