diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-04-08 13:57:36 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-04-08 13:57:36 +0200 |
| commit | 478b53f935264bdfe4efe394f8d804a1361a6770 (patch) | |
| tree | 31c87de7b67f928ff93b4564e0929d7db2a369f8 /src/blind-compress.c | |
| parent | Update TODO: blind-from-sent (diff) | |
| download | blind-478b53f935264bdfe4efe394f8d804a1361a6770.tar.gz blind-478b53f935264bdfe4efe394f8d804a1361a6770.tar.bz2 blind-478b53f935264bdfe4efe394f8d804a1361a6770.tar.xz | |
Document memory requirements, minor style fixes, more use of BUFSIZ, fix warnings, and fix potential buffer overflow
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-compress.c')
| -rw-r--r-- | src/blind-compress.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) { |
