[sysprof/wip/chergert/path-resolver] build: fix write length



commit 11ae2fa39500f182c5786d3b39f2281dececa662
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 21 13:12:02 2021 -0700

    build: fix write length

 src/libsysprof/sysprof-proc-source.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof/sysprof-proc-source.c b/src/libsysprof/sysprof-proc-source.c
index 7edaee0..9200b12 100644
--- a/src/libsysprof/sysprof-proc-source.c
+++ b/src/libsysprof/sysprof-proc-source.c
@@ -167,7 +167,7 @@ add_file (SysprofProcSource *self,
                                        -1,
                                        pid,
                                        path,
-                                       to_write > 0,
+                                       to_write == 0,
                                        (const guint8 *)data,
                                        this_write);
       data += this_write;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]