From c798827d579b1da775fb481f9cb987c02a679db9 Mon Sep 17 00:00:00 2001 From: Alexandre Montplaisir Date: Sat, 11 Feb 2012 12:30:47 -0500 Subject: [PATCH] Fix format-security warnings when building with trace-sync Signed-off-by: Alexandre Montplaisir Signed-off-by: Yannick Brosseau --- lttv/lttv/sync/event_analysis_chull.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lttv/lttv/sync/event_analysis_chull.c b/lttv/lttv/sync/event_analysis_chull.c index d36022c9..cc3aad52 100644 --- a/lttv/lttv/sync/event_analysis_chull.c +++ b/lttv/lttv/sync/event_analysis_chull.c @@ -1677,14 +1677,14 @@ static AllFactors* finalizeAnalysisCHullLP(SyncState* const syncState) if ((fp= fopen(fileName, "w")) == NULL) { - g_error(strerror(errno)); + g_error("%s", strerror(errno)); } fprintf(fp, "#%-24s %-25s %-25s %-25s\n", "x", "middle", "min", "max"); retval= chdir(cwd); if (retval == -1) { - g_error(strerror(errno)); + g_error("%s", strerror(errno)); } free(cwd); -- 2.34.1