allocate in exact size
Change-Id: I0a9d760ebd10f3655f116953a2ed353f992ef508
This commit is contained in:
parent
67ff63988f
commit
f8e94ec864
@ -147,7 +147,7 @@ namespace connectivity
|
||||
//------------------------------------------------------------------
|
||||
rtl::OUString toDateTimeString(const ::com::sun::star::util::DateTime& rDateTime)
|
||||
{
|
||||
sal_Char s[21];
|
||||
sal_Char s[20];
|
||||
snprintf(s,
|
||||
sizeof(s),
|
||||
"%04d-%02d-%02d %02d:%02d:%02d",
|
||||
@ -157,7 +157,7 @@ namespace connectivity
|
||||
(int)rDateTime.Hours,
|
||||
(int)rDateTime.Minutes,
|
||||
(int)rDateTime.Seconds);
|
||||
s[20] = 0;
|
||||
s[19] = 0;
|
||||
return rtl::OUString::createFromAscii(s);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user