diff options
Diffstat (limited to 'mysys/string.c')
-rw-r--r-- | mysys/string.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysys/string.c b/mysys/string.c index df78f2b98b5..e1ff9ec8c26 100644 --- a/mysys/string.c +++ b/mysys/string.c @@ -114,6 +114,12 @@ my_bool dynstr_append_mem(DYNAMIC_STRING *str, const char *append, return FALSE; } +my_bool dynstr_trunc(DYNAMIC_STRING *str, int n) +{ + str->length-=n; + str->str[str->length]= '\0'; + return FALSE; +} /** Concatenates any number of strings, escapes any OS quote in the result then * surround the whole affair in another set of quotes which is finally appended |