mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
tweaked buffer size (Stefan Evert++)
This commit is contained in:
parent
18b21263b6
commit
3b3a5e83bc
1 changed files with 2 additions and 2 deletions
4
dbdimp.c
4
dbdimp.c
|
@ -158,7 +158,7 @@ sqlite_is_number(pTHX_ const char *v)
|
|||
if (digit > 19) return 0; /* too large for i64 */
|
||||
if (digit == 19) {
|
||||
int c;
|
||||
char tmp[19];
|
||||
char tmp[22];
|
||||
strncpy(tmp, v, z - v + 1);
|
||||
c = memcmp(tmp, "922337203685477580", 18) * 10;
|
||||
if (c == 0) {
|
||||
|
@ -170,7 +170,7 @@ sqlite_is_number(pTHX_ const char *v)
|
|||
if (digit > 11) return 0; /* too large for i32 */
|
||||
if (digit == 10) {
|
||||
int c;
|
||||
char tmp[19];
|
||||
char tmp[14];
|
||||
strncpy(tmp, v, z - v + 1);
|
||||
c = memcmp(tmp, "2147483648", 10) * 10;
|
||||
if (c == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue