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