summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg/opkg-0.1.8/opkg_unarchive.patch
blob: 4b1244815595192b6227beafce7eccc95277a4a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Rebase for the latest version
Dongxiao Xu <dongxiao.xu@intel.com>

diff -ruN opkg-0.1.8-orig/libbb/unarchive.c opkg-0.1.8/libbb/unarchive.c
--- opkg-0.1.8-orig/libbb/unarchive.c	2010-07-20 09:39:02.266424893 +0800
+++ opkg-0.1.8/libbb/unarchive.c	2010-07-20 09:39:50.474435569 +0800
@@ -523,6 +523,10 @@
                 }
         }
 
+        if (strlen(tar_entry->name) > 100) {
+                tar_entry->name[100] = 0;
+        }
+
 	// tar_entry->name = xstrdup(tar.formated.name);
 
 /*