aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-flip.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-flip.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-flip.c')
-rw-r--r--src/blind-flip.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/blind-flip.c b/src/blind-flip.c
index 98e0d58..0c18602 100644
--- a/src/blind-flip.c
+++ b/src/blind-flip.c
@@ -26,7 +26,6 @@ main(int argc, char *argv[])
n = stream.height * (row_size = stream.width * stream.pixel_size);
buf = emalloc(n);
- memcpy(buf, stream.buf, stream.ptr);
while (eread_frame(&stream, buf, n))
for (ptr = n; ptr;)
ewriteall(STDOUT_FILENO, buf + (ptr -= row_size), row_size, "<stdout>");