X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fstring-util.c;h=293a15f9c041cf59f5354829cfdc86b0b0622a20;hp=0bde55f9d5749a29e2e7b4e133cfb6d2ecb7543a;hb=bc983c987eb3f92eceb373ba4e1c2076b0b3ca88;hpb=3c84247622c7d6ad51e7a49907995e3e48b5f472 diff --git a/src/basic/string-util.c b/src/basic/string-util.c index 0bde55f9d..293a15f9c 100644 --- a/src/basic/string-util.c +++ b/src/basic/string-util.c @@ -477,7 +477,7 @@ char *ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigne } if (k > x) /* last character was wide and went over quota */ - x ++; + x++; for (j = s + old_length; k < new_length && j > i; ) { char32_t c;