diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-03-18 21:24:49 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-03-18 21:24:49 +0000 |
commit | 962f255ee8f271920e8901824ae30fa7a0b40804 (patch) | |
tree | 32c8466be03d668fc42360e5f415ad689c5c95f9 /format.c | |
parent | 1d6fe43c7b2250f042d0113da8545d5ebb75c01e (diff) | |
parent | 979313832ce1d5f6cdc2c512e8524d6c517422e0 (diff) | |
download | rtmux-962f255ee8f271920e8901824ae30fa7a0b40804.tar.gz rtmux-962f255ee8f271920e8901824ae30fa7a0b40804.tar.bz2 rtmux-962f255ee8f271920e8901824ae30fa7a0b40804.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -988,7 +988,7 @@ found: } /* Skip until end. */ -static const char * +const char * format_skip(const char *s, const char *end) { int brackets = 0; @@ -1596,12 +1596,12 @@ done: /* Truncate the value if needed. */ if (limit > 0) { - new = utf8_trimcstr(value, limit); + new = format_trim_left(value, limit); format_log(ft, "applied length limit %d: %s", limit, new); free(value); value = new; } else if (limit < 0) { - new = utf8_rtrimcstr(value, -limit); + new = format_trim_right(value, -limit); format_log(ft, "applied length limit %d: %s", limit, new); free(value); value = new; |