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 e64156d430e..86de7bfcf69 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; +} void dynstr_free(DYNAMIC_STRING *str) { |