-
Notifications
You must be signed in to change notification settings - Fork 18
/
sevenzip920.patch
executable file
·34 lines (29 loc) · 1.12 KB
/
sevenzip920.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff -pur 7zip/C/Alloc.c 7zip/C/Alloc.c
--- 7zip/C/Alloc.c 2008-09-24 14:51:47.000000000 +0200
+++ 7zip/C/Alloc.c 2011-03-14 01:52:44.916600000 +0100
@@ -6,7 +6,6 @@ Public domain */
#ifdef _WIN32
#include <windows.h>
#endif
-#include <stdlib.h>
#include "Alloc.h"
diff -pur 7zip/C/Alloc.h 7zip/C/Alloc.h
--- 7zip/C/Alloc.h 2009-02-07 07:44:34.000000000 +0100
+++ 7zip/C/Alloc.h 2011-03-14 01:52:38.246600000 +0100
@@ -5,6 +5,7 @@
#define __COMMON_ALLOC_H
#include <stddef.h>
+#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
diff -pur 7zip/CPP/7zip/Common/StreamObjects.cpp 7zip/CPP/7zip/Common/StreamObjects.cpp
--- 7zip/CPP/7zip/Common/StreamObjects.cpp 2010-11-02 18:12:26.000000000 +0100
+++ 7zip/CPP/7zip/Common/StreamObjects.cpp 2011-03-05 18:44:51.044851100 +0100
@@ -78,7 +78,7 @@ Byte *CDynBufSeqOutStream::GetBufPtrForW
void CDynBufSeqOutStream::CopyToBuffer(CByteBuffer &dest) const
{
dest.SetCapacity(_size);
- memcpy(dest, _buffer, _size);
+ memcpy(dest, _buffer.operator const unsigned char *(), _size);
}
STDMETHODIMP CDynBufSeqOutStream::Write(const void *data, UInt32 size, UInt32 *processedSize)