Migrate extensions to common AMTL string funcs (#785)
This commit is contained in:
committed by
Kyle Sanderson
parent
6c7e29cbdb
commit
5611ec54a2
@@ -32,6 +32,7 @@
|
||||
#include "MyDriver.h"
|
||||
#include "MyDatabase.h"
|
||||
#include "smsdk_ext.h"
|
||||
#include "am-string.h"
|
||||
|
||||
MyDriver g_MyDriver;
|
||||
|
||||
@@ -133,7 +134,7 @@ MYSQL *Connect(const DatabaseInfo *info, char *error, size_t maxlength)
|
||||
M_CLIENT_MULTI_RESULTS))
|
||||
{
|
||||
/* :TODO: expose UTIL_Format from smutil! */
|
||||
snprintf(error, maxlength, "[%d]: %s", mysql_errno(mysql), mysql_error(mysql));
|
||||
ke::SafeSprintf(error, maxlength, "[%d]: %s", mysql_errno(mysql), mysql_error(mysql));
|
||||
mysql_close(mysql);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user