~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/cslib/CSXML.cc

  • Committer: Lee Bieber
  • Date: 2010-10-22 16:47:38 UTC
  • mfrom: (1841.1.7 drizzle_pbms)
  • Revision ID: kalebral@gmail.com-20101022164738-vv8w22b8towpb307
Merge Barry - fix bug 657830: PBMS build failure in GCC 4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1293
1293
 
1294
1294
        switch (err) {
1295
1295
                case CS_XML_ERR_OUT_OF_MEMORY:
1296
 
                        sprintf(err_message, "AES parse error- insufficient memory");                   
 
1296
                        snprintf(err_message, CS_XML_ERR_MSG_SIZE, "AES parse error- insufficient memory");                     
1297
1297
                        break;
1298
1298
                case CS_XML_ERR_CHAR_TOO_LARGE:
1299
 
                        sprintf(err_message, "AES parse error- UNICODE character too large to be encoded as UTF-8");                    
 
1299
                        snprintf(err_message, CS_XML_ERR_MSG_SIZE, "AES parse error- UNICODE character too large to be encoded as UTF-8");                      
1300
1300
                        break;
1301
1301
                default:
1302
 
                        sprintf(err_message, "AES parse error- %s", strerror(err));
 
1302
                        snprintf(err_message, CS_XML_ERR_MSG_SIZE, "AES parse error- %s", strerror(err));
1303
1303
                        break;
1304
1304
        }
1305
1305
}