~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/query.h

  • Committer: Brian Aker
  • Date: 2011-11-18 02:03:41 UTC
  • mto: (2463.1.1 drizzle-include)
  • mto: This revision was merged to the branch mainline in revision 2462.
  • Revision ID: brian@tangent.org-20111118020341-mgz2m1kjo62al44e
Fix safety issues around calling API with no check for NULL

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
 * size of the output string in to.
228
228
 */
229
229
DRIZZLE_API
230
 
size_t drizzle_escape_string(char *to, const char *from, size_t from_size);
231
 
DRIZZLE_API
232
 
ssize_t drizzle_safe_escape_string(char *to, size_t max_to_size, const char *from, size_t from_size);
 
230
ssize_t drizzle_escape_string(char *to, size_t max_to_size, const char *from, size_t from_size);
 
231
 
233
232
DRIZZLE_API
234
233
size_t drizzle_hex_string(char *to, const char *from, size_t from_size);
 
234
 
235
235
DRIZZLE_API
236
236
void drizzle_mysql_password_hash(char *to, const char *from, size_t from_size);
237
237