Jump to content

Guild creatin error


Recommended Posts

Hey i get following error after creation of a new Guild:

Spoiler

EscapeString: FATAL ERROR!! not enough buffer size (dstSize 25 srcSize 13 src: Teste)

 

The code looks like :

Spoiler

    static char __escape_name[GUILD_NAME_MAX_LEN * 2 + 1];
    DBManager::instance().EscapeString(__escape_name, sizeof(__escape_name), static_cast<const char *>(gcp.name), sizeof(gcp.name));
    std::auto_ptr<SQLMsg> pmsg(DBManager::instance().DirectQuery("SELECT COUNT(*) FROM guild%s WHERE name = '%s'", get_table_postfix(), __escape_name));
    if (pmsg->Get()->uiNumRows > 0)

 

Does anyone got a idea how to fix this error ?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.