Permalink
Browse files

set terminate to retval

  • Loading branch information...
1 parent 82c4208 commit 927cb2b5a01b1a58bdf721533de74bfc6dda21a0 @yappo committed Mar 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mysql_address_normalize.cc
@@ -235,6 +235,7 @@ char* address_normalize(UDF_INIT* initid, UDF_ARGS* args, char* result, unsigned
goto error;
memcpy(ctx->data, normalized_address, normalized_address_length);
+ ctx->data[normalized_address_length] = '\0';
*length = normalized_address_length;
return ctx->data;

0 comments on commit 927cb2b

Please sign in to comment.