patch from Terry Brown <terry_n_brown at yahoo.com> to not sanitize the schema in mdb-schema

This commit is contained in:
Brian Bruns
2010-08-03 20:04:29 -04:00
parent fb179fc301
commit 4f73e1b295
2 changed files with 13 additions and 11 deletions

View File

@@ -151,8 +151,10 @@ char* sanitize_name(const char* str)
if (*str) {
*p = isalpha(*str) ? *str : '_';
p++;
if (!isdigit(*str)) /* if it was a digit, keep it */
str++;
}
while (*str) {
*p = isalnum(*str) ? *str : '_';
p++;
@@ -160,6 +162,7 @@ char* sanitize_name(const char* str)
}
*p = 0;
return result;
}