vcl/unx/generic/app/sm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d520837ca24fbe0ba8f0ed9043bf7ddca354e032
Author: Michael Stahl <[email protected]>
Date:   Thu Jul 13 15:41:02 2017 +0200

    vcl: fix -Werror=format (32-bit GCC)
    
    Change-Id: Ia7afb5b9750704797ff8030688d0531c27d80836
    (cherry picked from commit c356884319f254fdd944376fe2f841532dc36433)
    Reviewed-on: https://gerrit.libreoffice.org/39965
    Tested-by: Jenkins <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>

diff --git a/vcl/unx/generic/app/sm.cxx b/vcl/unx/generic/app/sm.cxx
index e33ccfd50726..9242677c1521 100644
--- a/vcl/unx/generic/app/sm.cxx
+++ b/vcl/unx/generic/app/sm.cxx
@@ -358,7 +358,7 @@ void SessionManagerClient::SaveYourselfProc(
                                                  (interact_style == 
SmInteractStyleErrors) ? "SmInteractStyleErrors" :
                                                                                
              "SmInteractStyleAny"));
     char num[100];
-    snprintf(num, sizeof(num), "_%d_%d", now.Seconds, (now.Nanosec / 1000));
+    snprintf(num, sizeof(num), "_%" SAL_PRIuUINT32 "_%" SAL_PRIuUINT32, 
now.Seconds, (now.Nanosec / 1001));
     m_aTimeID = OString(num);
 
     BuildSmPropertyList();
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to