+2008-10-27 Christian Persch <chpe@gnome.org>
+
+ * backend/djvu/djvu-document.c
+ * backend/ps/ev-spectre.c
+ * shell/ev-jobs.c: Use printf safely. Bug #558066.
+
2008-10-24 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* shell/ev-view.c (ev_view_change_page),
}
if (error) {
- g_set_error (error, EV_DJVU_ERROR, 0, error_str);
+ g_set_error_literal (error, EV_DJVU_ERROR, 0, error_str);
} else {
- g_warning (error_str);
+ g_warning ("%s", error_str);
}
g_free (error_str);
djvu_wait_for_message (djvu_document, DDJVU_DOCINFO, &djvu_error);
if (djvu_error) {
- g_set_error (error,
- EV_DOCUMENT_ERROR,
- EV_DOCUMENT_ERROR_INVALID,
- djvu_error->message);
+ g_set_error_literal (error,
+ EV_DOCUMENT_ERROR,
+ EV_DOCUMENT_ERROR_INVALID,
+ djvu_error->message);
g_error_free (djvu_error);
g_free (filename);
ddjvu_document_release (djvu_document->d_document);
djvu_handle_events (djvu_document, TRUE, &djvu_error);
if (djvu_error) {
- g_set_error (error,
- EV_DOCUMENT_ERROR,
- EV_DOCUMENT_ERROR_INVALID,
- djvu_error->message);
+ g_set_error_literal (error,
+ EV_DOCUMENT_ERROR,
+ EV_DOCUMENT_ERROR_INVALID,
+ djvu_error->message);
g_error_free (djvu_error);
g_free (filename);
ddjvu_document_release (djvu_document->d_document);
}
if (spectre_page_status (ps_page)) {
- g_warning (spectre_status_to_string (spectre_page_status (ps_page)));
+ g_warning ("%s", spectre_status_to_string (spectre_page_status (ps_page)));
g_free (data);
return NULL;
message = g_strdup_vprintf (format, args);
va_end (args);
- job->error = g_error_new (domain, code, message);
+ job->error = g_error_new_literal (domain, code, message);
g_free (message);
ev_job_emit_finished (job);