mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 08:56:01 +01:00
Fix 'format not a string literal' warnings
This commit is contained in:
parent
8386b3abf4
commit
8146ebdb3d
2 changed files with 2 additions and 4 deletions
|
@ -168,7 +168,7 @@ cmd_info(girara_session_t* session, girara_list_t* UNUSED(argument_list))
|
||||||
|
|
||||||
if (strlen(string->str) > 0) {
|
if (strlen(string->str) > 0) {
|
||||||
g_string_erase(string, strlen(string->str) - 1, 1);
|
g_string_erase(string, strlen(string->str) - 1, 1);
|
||||||
girara_notify(session, GIRARA_INFO, string->str);
|
girara_notify(session, GIRARA_INFO, "%s", string->str);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_string_free(string, TRUE);
|
g_string_free(string, TRUE);
|
||||||
|
|
|
@ -438,9 +438,7 @@ document_save(zathura_t* zathura, const char* path, bool overwrite)
|
||||||
gchar* file_path = girara_fix_path(path);
|
gchar* file_path = girara_fix_path(path);
|
||||||
if (!overwrite && g_file_test(file_path, G_FILE_TEST_EXISTS))
|
if (!overwrite && g_file_test(file_path, G_FILE_TEST_EXISTS))
|
||||||
{
|
{
|
||||||
gchar* message = g_strdup_printf("File already exists: %s. Use :write! to overwrite it.", file_path);
|
girara_error("File already exists: %s. Use :write! to overwrite it.", file_path);
|
||||||
girara_error(message);
|
|
||||||
g_free(message);
|
|
||||||
g_free(file_path);
|
g_free(file_path);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue