diff options
author | Frederic Culot <calcurse@culot.org> | 2009-06-01 08:04:04 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2009-06-01 08:04:04 +0000 |
commit | 88594755503acb4e1526e64b848814025f45896e (patch) | |
tree | 45879200652535c55b9bf6947e3dc233f8c6e0d0 /src | |
parent | 68322a536c47828c3d4515dabadcc9b2db237232 (diff) | |
download | calcurse-88594755503acb4e1526e64b848814025f45896e.tar.gz calcurse-88594755503acb4e1526e64b848814025f45896e.zip |
Fixes gcc 'format-scurity' issue (thanks Francois Boulogne for reporting this)
Diffstat (limited to 'src')
-rwxr-xr-x | src/io.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -1,4 +1,4 @@ -/* $calcurse: io.c,v 1.58 2009/01/24 18:45:35 culot Exp $ */ +/* $calcurse: io.c,v 1.59 2009/06/01 08:04:04 culot Exp $ */ /* * Calcurse - text-based organizer @@ -173,15 +173,16 @@ progress_bar (progress_bar_t type, int progress) switch (type) { case PROGRESS_BAR_SAVE: - EXIT_IF (progress < 0 || progress > PROGRESS_BAR_KEYS, error_msg); + EXIT_IF (progress < 0 || progress > PROGRESS_BAR_KEYS, "%s", error_msg); status_mesg (mesg_sav, file[progress]); break; case PROGRESS_BAR_LOAD: - EXIT_IF (progress < 0 || progress > PROGRESS_BAR_KEYS, error_msg); + EXIT_IF (progress < 0 || progress > PROGRESS_BAR_KEYS, "%s", error_msg); status_mesg (mesg_load, file[progress]); break; case PROGRESS_BAR_EXPORT: - EXIT_IF (progress < 0 || progress > PROGRESS_BAR_EXPORT_TODO, error_msg); + EXIT_IF (progress < 0 + || progress > PROGRESS_BAR_EXPORT_TODO, "%s", error_msg); status_mesg (mesg_export, data[progress]); break; } @@ -812,7 +813,7 @@ io_save_cal (conf_t *conf, io_save_display_t display) data_file = fopen (path_conf, "w"); if (data_file == NULL) - ERROR_MSG (access_pb); + ERROR_MSG ("%s", access_pb); else { custom_color_theme_name (theme_name); @@ -924,7 +925,7 @@ io_save_cal (conf_t *conf, io_save_display_t display) progress_bar (PROGRESS_BAR_SAVE, PROGRESS_BAR_TODO); data_file = fopen (path_todo, "w"); if (data_file == NULL) - ERROR_MSG (access_pb); + ERROR_MSG ("%s", access_pb); else { for (i = todolist; i != 0; i = i->next) @@ -946,7 +947,7 @@ io_save_cal (conf_t *conf, io_save_display_t display) progress_bar (PROGRESS_BAR_SAVE, PROGRESS_BAR_APTS); data_file = fopen (path_apts, "w"); if (data_file == NULL) - ERROR_MSG (access_pb); + ERROR_MSG ("%s", access_pb); else { recur_save_data (data_file); @@ -968,7 +969,7 @@ io_save_cal (conf_t *conf, io_save_display_t display) progress_bar (PROGRESS_BAR_SAVE, PROGRESS_BAR_KEYS); data_file = fopen (path_keys, "w"); if (data_file == NULL) - ERROR_MSG (access_pb); + ERROR_MSG ("%s", access_pb); else { keys_save_bindings (data_file); |