From 478b53f935264bdfe4efe394f8d804a1361a6770 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 8 Apr 2017 13:57:36 +0200 Subject: Document memory requirements, minor style fixes, more use of BUFSIZ, fix warnings, and fix potential buffer overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-compress.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/blind-compress.c') diff --git a/src/blind-compress.c b/src/blind-compress.c index 768ef06..c70a066 100644 --- a/src/blind-compress.c +++ b/src/blind-compress.c @@ -51,7 +51,6 @@ main(int argc, char *argv[]) buf[0] = emalloc(n); buf[1] = ecalloc(1, n); - memcpy(buf[0], stream.buf, stream.ptr); for (i = 0; eread_frame(&stream, buf[i], n); i ^= 1) { parts = compare(buf[i], buf[i ^ 1], n, &cmp, &cmpsize); for (off = part = 0; part < parts; part += 2) { -- cgit v1.2.3-70-g09d2