[Libreoffice-commits] core.git: connectivity/source
Stephan Bergmann
sbergman at redhat.com
Thu Apr 18 23:03:43 PDT 2013
connectivity/source/drivers/postgresql/pq_tools.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit eeab70fd53ee88b44afc5278ae81db53403f4a0e
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Apr 19 08:03:09 2013 +0200
-Werror,-Wformat
Change-Id: I10eb204e63dee480a54494f5869f1f1b2e4bfc92
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx
index a9be424..478fb63 100644
--- a/connectivity/source/drivers/postgresql/pq_tools.cxx
+++ b/connectivity/source/drivers/postgresql/pq_tools.cxx
@@ -140,7 +140,7 @@ OUString time2String( const com::sun::star::util::Time & x )
// TODO FIXME: replace by DBTypeConversion::toTimeString
const size_t buflen = 19;
char buffer[buflen];
- snprintf( buffer, buflen, "%02d:%02d:%02d.%09d", x.Hours, x.Minutes, x.Seconds, x.NanoSeconds );
+ snprintf( buffer, buflen, "%02d:%02d:%02d.%09" SAL_PRIuUINT32, x.Hours, x.Minutes, x.Seconds, x.NanoSeconds );
return OUString::createFromAscii( buffer );
}
@@ -180,7 +180,7 @@ OUString dateTime2String( const com::sun::star::util::DateTime & x )
{
// TODO FIXME: replace by DBTypeConversion::toDateTimeString
char buffer[128];
- sprintf( buffer, "%d-%02d-%02d %02d:%02d:%02d.%09d",
+ sprintf( buffer, "%d-%02d-%02d %02d:%02d:%02d.%09" SAL_PRIuUINT32,
x.Year, x.Month, x.Day,
x.Hours, x.Minutes, x.Seconds, x.NanoSeconds );
return OUString::createFromAscii( buffer );
More information about the Libreoffice-commits
mailing list