(wrong string) ée

From: <git_AT_suckless.org>
Date: Fri, 20 Jan 2017 02:42:30 +0100 (CET)

commit 75fcc67794c2cecd23f45ffbd780f6fa4fba3aef
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Fri Jan 20 02:41:44 2017 +0100
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Fri Jan 20 02:41:44 2017 +0100

    Fix blind-from-text, blind-to-text works
    
    Signed-off-by: Mattias Andrée <maandree_AT_kth.se>

diff --git a/TODO b/TODO
index 909e2d7..4cf63b2 100644
--- a/TODO
+++ b/TODO
_AT_@ -16,6 +16,4 @@ UNTESTED:
         blind-crop
         blind-cut
         blind-extend
- blind-from-text
         blind-rewrite-head
- blind-to-text
diff --git a/src/blind-to-text.c b/src/blind-to-text.c
index 73bf981..5467787 100644
--- a/src/blind-to-text.c
+++ b/src/blind-to-text.c
_AT_@ -38,10 +38,10 @@ main(int argc, char *argv[])
         else
                 eprintf("pixel format %s is not supported, try xyza\n", stream.pixfmt);
 
- printf("%zu %zu %zu %s", stream.frames, stream.width, stream.height, stream.pixfmt);
+ printf("%zu %zu %zu %s\n", stream.frames, stream.width, stream.height, stream.pixfmt);
 
         while ((n = eread_stream(&stream, SIZE_MAX))) {
- n -= n % stream.pixel_size;
+ n = stream.ptr - (stream.ptr % stream.pixel_size);
                 process(&stream, n);
                 memmove(stream.buf, stream.buf + n, stream.ptr -= n);
         }
Received on Fri Jan 20 2017 - 02:42:30 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 20 2017 - 02:48:17 CET