From 2f1e62f83164237c8c0a8355c52dbf8728121221 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 11 Jun 2023 01:10:09 -0400 Subject: [PATCH] gallium/hud: append results to files instead of overwriting them Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/auxiliary/hud/hud_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index bc31353..b951c06 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -1082,7 +1082,7 @@ hud_graph_set_dump_file(struct hud_graph *gr, const char *hud_dump_dir, bool to_ strcpy(dump_file, hud_dump_dir); strcat(dump_file, PATH_SEP); strcat_without_spaces(dump_file, gr->name); - gr->fd = fopen(dump_file, "w+"); + gr->fd = fopen(dump_file, "a+"); free(dump_file); } } else if (to_stdout) { -- 2.7.4