aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-03-18 21:24:49 +0000
committerThomas Adam <thomas@xteddy.org>2019-03-18 21:24:49 +0000
commit962f255ee8f271920e8901824ae30fa7a0b40804 (patch)
tree32c8466be03d668fc42360e5f415ad689c5c95f9 /format.c
parent1d6fe43c7b2250f042d0113da8545d5ebb75c01e (diff)
parent979313832ce1d5f6cdc2c512e8524d6c517422e0 (diff)
downloadrtmux-962f255ee8f271920e8901824ae30fa7a0b40804.tar.gz
rtmux-962f255ee8f271920e8901824ae30fa7a0b40804.tar.bz2
rtmux-962f255ee8f271920e8901824ae30fa7a0b40804.zip
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r--format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/format.c b/format.c
index 0d1351ad..ccf3fe38 100644
--- a/format.c
+++ b/format.c
@@ -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;