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 dfd42d137dd..368f7344aa6 100644 --- a/mysys/string.c +++ b/mysys/string.c @@ -115,6 +115,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; +} void dynstr_free(DYNAMIC_STRING *str) { |