wok view busybox/stuff/busybox-1.11.0-unlzma.u @ rev 2298

Up: lighttpd (1.4.21)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 22 22:48:27 2009 +0100 (2009-02-22)
parents
children
line source
1 --- busybox-1.11.0/archival/libunarchive/decompress_unlzma.c
2 +++ busybox-1.11.0/archival/libunarchive/decompress_unlzma.c
3 @@ -78,7 +78,7 @@
4 }
6 /* Called once */
7 -static ALWAYS_INLINE void rc_free(rc_t * rc)
8 +static ALWAYS_INLINE void rc_free(void * rc)
9 {
10 if (ENABLE_FEATURE_CLEAN_UP)
11 free(rc);
12 @@ -491,10 +491,14 @@
14 if (full_write(dst_fd, buffer, buffer_pos) != (ssize_t)buffer_pos) {
15 bad:
16 - rc_free(rc);
17 - return -1;
18 + len = -1;
19 + }
20 + else {
21 + USE_DESKTOP(total_written += buffer_pos;)
22 + len = USE_DESKTOP(total_written) + 0;
23 }
24 rc_free(rc);
25 - USE_DESKTOP(total_written += buffer_pos;)
26 - return USE_DESKTOP(total_written) + 0;
27 + rc_free(buffer);
28 + rc_free(p);
29 + return len;
30 }