mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-02-27 17:03:46 +08:00
patch from Terry Brown <terry_n_brown at yahoo.com> to not sanitize the schema in mdb-schema
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user