]> www.fi.muni.cz Git - evince.git/blobdiff - properties/ev-properties-view.c
[print] Fixes segmentation violation when format is empty
[evince.git] / properties / ev-properties-view.c
index 6d497ff3782fed453d9d6bde9900a319c6f7a268..9a9d13c0d7ab624da2c901fc601a864a262ec8ea 100644 (file)
@@ -112,7 +112,7 @@ ev_properties_view_format_date (GTime utime)
 {
        time_t time = (time_t) utime;
        char s[256];
-       const char *fmt_hack = "%c";
+       const char fmt_hack[] = "%c";
        size_t len;
 #ifdef HAVE_LOCALTIME_R
        struct tm t;
@@ -181,7 +181,7 @@ set_property (GtkTable    *table,
 
        label = gtk_label_new (NULL);
        g_object_set (G_OBJECT (label), "xalign", 0.0, NULL);
-       markup = g_strdup_printf ("<b>%s</b>", properties_info[property].label);
+       markup = g_strdup_printf ("<b>%s</b>", _(properties_info[property].label));
        gtk_label_set_markup (GTK_LABEL (label), markup);
        g_free (markup);