]> www.fi.muni.cz Git - evince.git/commitdiff
Make the fixed sized string a semantically correct const char[] instead of
authorTobias Mueller <tobiasmue@src.gnome.org>
Thu, 5 Mar 2009 00:34:49 +0000 (00:34 +0000)
committerTobias Mueller <tobiasmue@src.gnome.org>
Thu, 5 Mar 2009 00:34:49 +0000 (00:34 +0000)
    * properties/ev-properties-view.c:
    (ev_properties_view_format_date): Make the fixed sized string a
    semantically correct const char[] instead of a const char* to fix
    a compiler warning if built with -Wformat.
    ** Fixes bug 574168

svn path=/trunk/; revision=3516

ChangeLog
properties/ev-properties-view.c

index 4a3df34e840b5948d99d811fc1835f97ee57ce84..033607e2b1f38f522f9e9be1400df31be56ae1a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-03-05  Tobias Mueller  <tobiasmue@svn.gnome.org>
+
+       * properties/ev-properties-view.c:
+       (ev_properties_view_format_date): Make the fixed sized string a 
+       semantically correct const char[] instead of a const char* to fix 
+       a compiler warning if built with -Wformat.
+       ** Fixes bug 574168
+
 2009-03-03  Christian Persch  <chpe@gnome.org>
 
        * libdocument/ev-document-factory.c:
index 6d497ff3782fed453d9d6bde9900a319c6f7a268..e0f177978638f81c0e398e5fdeb6468e38c524d0 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;