Skip to content

Commit 8b4ae80

Browse files
committed
Update for V5.8
1 parent dc7000c commit 8b4ae80

File tree

1 file changed

+3
-3
lines changed
  • 3rd_party/sqlite_mod/src

1 file changed

+3
-3
lines changed

3rd_party/sqlite_mod/src/date.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -883,10 +883,10 @@ static void fromTimestampFunc(
883883
sqlite3_mutex_leave(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
884884
#endif
885885
if( pTm ){
886-
char tmpBuf[100];
886+
char tmpBuf[32];
887887
char zBuf[100] = "";
888-
strftime(tmpBuf, 100, "%Y-%m-%dT%H:%M:%S", &sNow);
889-
sprintf(zBuf, "%s.%dZ", tmpBuf, milli);
888+
strftime(tmpBuf, sizeof(tmpBuf), "%Y-%m-%dT%H:%M:%S", &sNow);
889+
snprintf(zBuf, sizeof(zBuf), "%s.%dZ", tmpBuf, milli);
890890
sqlite3_result_text(context, zBuf, -1, SQLITE_TRANSIENT);
891891
}
892892
}

0 commit comments

Comments
 (0)