aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-crop.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-crop.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-crop.c')
-rw-r--r--src/blind-crop.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/blind-crop.c b/src/blind-crop.c
index bd0b9e0..c08864e 100644
--- a/src/blind-crop.c
+++ b/src/blind-crop.c
@@ -77,7 +77,6 @@ main(int argc, char *argv[])
right_start = left + orown;
right = irown - right_start;
- memcpy(buf, stream.buf, ptr = stream.ptr);
while (eread_frame(&stream, buf, n)) {
if (tile) {
for (ptr = y = 0; y < stream.height; y++) {