4129b6517f985ed217bb8272f97f79bd86ecfe0c
[busybox-power] / debian / patches / hotfixes / busybox-1.20.1-tar.patch
1 --- busybox-1.20.1/archival/libarchive/get_header_tar.c
2 +++ busybox-1.20.1-tar/archival/libarchive/get_header_tar.c
3 @@ -84,7 +84,7 @@ static unsigned long long getOctal(char 
4                 first >>= 1; /* now 7th bit = 6th bit */
5                 v = first;   /* sign-extend 8 bits to 64 */
6                 while (--len != 0)
7 -                       v = (v << 8) + (unsigned char) *str++;
8 +                       v = (v << 8) + (uint8_t) *++str;
9         }
10         return v;
11  }