mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixing wrong sprintf() calls.
modified: storage/connect/filamap.cpp storage/connect/filamdbf.cpp storage/connect/filamfix.cpp storage/connect/filamtxt.cpp storage/connect/filamvct.cpp storage/connect/ha_connect.cc storage/connect/osutil.c storage/connect/plgdbutl.cpp storage/connect/plugutil.c storage/connect/tabfix.cpp storage/connect/tabxml.cpp storage/connect/user_connect.cc storage/connect/value.cpp storage/connect/xindex.cpp
This commit is contained in:
@@ -705,7 +705,7 @@ char *STRING::GetShortString(char *p, int n)
|
||||
/***********************************************************************/
|
||||
char *STRING::GetIntString(char *p, int n)
|
||||
{
|
||||
sprintf(p, "%*d", n, atol(Strp));
|
||||
sprintf(p, "%*ld", n, atol(Strp));
|
||||
return p;
|
||||
} // end of GetIntString
|
||||
|
||||
@@ -4336,7 +4336,7 @@ char *DFVAL::GetShortString(char *p, int n)
|
||||
/***********************************************************************/
|
||||
char *DFVAL::GetIntString(char *p, int n)
|
||||
{
|
||||
sprintf(p, "%*ld", n, (int)Fval);
|
||||
sprintf(p, "%*ld", n, (long) Fval);
|
||||
return p;
|
||||
} // end of GetIntString
|
||||
|
||||
|
Reference in New Issue
Block a user