(wrong string) ée

From: <git_AT_suckless.org>
Date: Mon, 3 Jul 2017 22:58:36 +0200 (CEST)

commit 6128aa893ef5180be5280c7e8185bfee85a00a73
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Mon Jul 3 22:58:31 2017 +0200
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Mon Jul 3 22:58:31 2017 +0200

    Fix blind-to-image -f
    
    Signed-off-by: Mattias Andrée <maandree_AT_kth.se>

diff --git a/src/blind-to-image.c b/src/blind-to-image.c
index a316123..8bc586e 100644
--- a/src/blind-to-image.c
+++ b/src/blind-to-image.c
_AT_@ -119,13 +119,11 @@ main(int argc, char *argv[])
                         eprintf("%s: frame is too wide\n", stream.file);
                 if (stream.height > UINT32_MAX)
                         eprintf("%s: frame is too tall\n", stream.file);
- printf("farbfeld");
- memmove(stream.buf + 8, stream.buf, stream.ptr);
- stream.ptr += 8;
                 width = htonl(width);
                 height = htonl(height);
- memcpy(stream.buf + 0, &width, 4);
- memcpy(stream.buf + 4, &height, 4);
+ ewriteall(STDOUT_FILENO, "farbfeld", 8, "<stdout>");
+ ewriteall(STDOUT_FILENO, &width, 4, "<stdout>");
+ ewriteall(STDOUT_FILENO, &height, 4, "<stdout>");
         } else {
                 printf("P7\n"
                        "WIDTH %zu\n"
_AT_@ -134,8 +132,8 @@ main(int argc, char *argv[])
                        "MAXVAL %llu\n"
                        "TUPLTYPE RGB_ALPHA\n"
                        "ENDHDR\n", stream.width, stream.height, max);
+ efflush(stdout, "<stdout>");
         }
- efflush(stdout, "<stdout>");
 
         process_stream(&stream, process);
         return 0;
Received on Mon Jul 03 2017 - 22:58:36 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 03 2017 - 23:00:36 CEST