--- libmysql.c Tue Jan 24 18:37:12 2006 +++ libmysql.c.orig Tue Jan 24 18:36:46 2006 @@ -4163,7 +4163,7 @@ /* Add an end null if there is room in the buffer */ if (copy_length != param->buffer_length) ((uchar *)param->buffer)[copy_length]= '\0'; - *param->length= copy_length; + *param->length= length; /* return total length */ *param->error= copy_length < length; *row+= length; }