packages: clean up the package folder
[openwrt.git] / package / utils / busybox / patches / 700-hexdump_segfault_fix.patch
1 --- a/libbb/dump.c
2 +++ b/libbb/dump.c
3 @@ -301,7 +301,7 @@ static NOINLINE void rewrite(priv_dumper
4                 ) {
5                         fu->reps += (dumper->blocksize - fs->bcnt) / fu->bcnt;
6                 }
7 -               if (fu->reps > 1) {
8 +               if (fu->reps > 1 && fu->nextpr) {
9                         for (pr = fu->nextpr;; pr = pr->nextpr)
10                                 if (!pr->nextpr)
11                                         break;