diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-04-19 08:03:09 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-04-19 08:03:09 +0200 |
commit | eeab70fd53ee88b44afc5278ae81db53403f4a0e (patch) | |
tree | b38c329ff31ba8551db9e8d1c3a873fe33b1f95f | |
parent | 202d45cff25492bb4d7f550df5c368af097d2e0c (diff) |
-Werror,-Wformat
Change-Id: I10eb204e63dee480a54494f5869f1f1b2e4bfc92
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_tools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx index a9be424d9b34..478fb63d4f2d 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 ); |