wok view busybox/stuff/busybox-1.11.0-unlzma.u @ rev 2174
Up screen (4.0.3), add screen-terminfo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 08 12:53:23 2009 +0000 (2009-02-08) |
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 }