aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-flop.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-04-08 13:57:36 +0200
committerMattias Andrée <maandree@kth.se>2017-04-08 13:57:36 +0200
commit478b53f935264bdfe4efe394f8d804a1361a6770 (patch)
tree31c87de7b67f928ff93b4564e0929d7db2a369f8 /src/blind-flop.c
parentUpdate TODO: blind-from-sent (diff)
downloadblind-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-flop.c')
-rw-r--r--src/blind-flop.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/blind-flop.c b/src/blind-flop.c
index e98771d..5f737f3 100644
--- a/src/blind-flop.c
+++ b/src/blind-flop.c
@@ -30,7 +30,6 @@ main(int argc, char *argv[])
image = emalloc(n);
m = n - stream.pixel_size;
- memcpy(buf, stream.buf, stream.ptr);
while (eread_row(&stream, buf, n)) {
for (i = 0; i < stream.pixel_size; i++)
for (j = 0; j < n; j += stream.pixel_size)