X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fgraph_functions.c;h=91feef0c45c5a64f2cc28dc3424d3cf748ec4297;hb=df64b31664467d7217fa08fcdee423577856b38a;hp=c347b249b90fcb605bb1ea115bd89e688dfe96b3;hpb=c7cb53d7585f0e82f031f0f330f71f773c1d95c8;p=lttv.git diff --git a/lttv/lttv/sync/graph_functions.c b/lttv/lttv/sync/graph_functions.c index c347b249..91feef0c 100644 --- a/lttv/lttv/sync/graph_functions.c +++ b/lttv/lttv/sync/graph_functions.c @@ -55,11 +55,11 @@ FILE* createGraphsDir(const char* const graphsDir) S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH)) == -1) { - g_error(strerror(errno)); + g_error("%s", strerror(errno)); } if ((result= fdopen(graphsFp, "w")) == NULL) { - g_error(strerror(errno)); + g_error("%s", strerror(errno)); } fprintf(result, @@ -69,7 +69,7 @@ FILE* createGraphsDir(const char* const graphsDir) retval= chdir(cwd); if (retval == -1) { - g_error(strerror(errno)); + g_error("%s", strerror(errno)); } free(cwd); @@ -95,7 +95,7 @@ char* changeToGraphsDir(const char* const graphsDir) cwd= getcwd(NULL, 0); if (cwd == NULL) { - g_error(strerror(errno)); + g_error("%s", strerror(errno)); } while ((retval= chdir(graphsDir)) != 0) { @@ -105,12 +105,12 @@ char* changeToGraphsDir(const char* const graphsDir) S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH); if (retval != 0) { - g_error(strerror(errno)); + g_error("%s", strerror(errno)); } } else { - g_error(strerror(errno)); + g_error("%s", strerror(errno)); } } @@ -233,11 +233,11 @@ void writeGraphsScript(SyncState* const syncState) if (ftruncate(fileno(syncState->graphsStream), trunc) == -1) { - g_error(strerror(errno)); + g_error("%s", strerror(errno)); } if (fseek(syncState->graphsStream, 0, SEEK_END) == -1) { - g_error(strerror(errno)); + g_error("%s", strerror(errno)); } fprintf(syncState->graphsStream,