MXS-1500: Fix real_type values

The characters in the type weren't checked for correctness which caused
the processing to read more characters than was intended.
This commit is contained in:
Markus Mäkelä 2017-10-28 16:03:23 +03:00
parent 465c015005
commit 63cbf56cb2

View File

@ -569,7 +569,7 @@ int extract_type_length(const char* ptr, char *dest)
/** Skip characters until we either hit a whitespace character or the start
* of the length definition. */
while (*ptr && !isspace(*ptr) && *ptr != '(')
while (*ptr && isalpha(*ptr))
{
ptr++;
}