Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
Fix build failure with -Werror=format-security (#1037059)
Browse files Browse the repository at this point in the history
printf(msg) bad. printf("%s", msg) good.
  • Loading branch information
wgwoods committed Dec 3, 2013
1 parent c8c0c3e commit b77bf2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system-upgrade-fedora.c
Expand Up @@ -578,7 +578,7 @@ gchar **read_filelist(gchar *path, gchar *name) {

filelist_path = g_build_filename(path, name, NULL);
if (!g_file_get_contents(filelist_path, &filelist_data, NULL, &error))
g_critical(error->message);
g_critical("%s", error->message);

/* parse the data into a list of files */
g_strchomp(filelist_data);
Expand Down Expand Up @@ -651,7 +651,7 @@ int main(int argc, char* argv[]) {

link_target = g_file_read_link(symlink, &error);
if (link_target == NULL)
g_critical(error->message);
g_critical("%s", error->message);

packagedir = g_build_filename(root, link_target, NULL);
g_debug("%s -> %s", symlink, packagedir);
Expand Down

0 comments on commit b77bf2e

Please sign in to comment.