]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
src/connection.c: Fix switched variables in read_from_write_to().
authorSimon Ruderich <simon@ruderich.org>
Mon, 7 Mar 2011 16:47:05 +0000 (17:47 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 7 Mar 2011 16:47:05 +0000 (17:47 +0100)
src/connection.c

index ec351b7cc4446551151428d3795fa68a18b2aa6b..8f78bba6c373a6078b5421bb5787d5bbcb73fdea 100644 (file)
@@ -271,8 +271,8 @@ static int read_from_write_to(int from, int to) {
         return -1;
     }
     if (size_read != size_written) {
-        printf("only written %ld of %ld bytes!\n", (long int)size_read,
-                                                   (long int)size_written);
+        printf("only written %ld of %ld bytes!\n", (long int)size_written,
+                                                   (long int)size_read);
         return -1;
     }