[hackers] [libgrapheme] Remove superfluous printf-parameter from the example || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Fri, 7 Oct 2022 12:41:42 +0200 (CEST)

commit 4b4292a8f78eec4271213982fdddaf1c479dfe96
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Fri Oct 7 12:40:51 2022 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Fri Oct 7 12:40:51 2022 +0200

    Remove superfluous printf-parameter from the example
    
    This fortunately has no functional effect, it's just redundant.
    
    Thanks to Kartik Agaram for reporting this!
    
    Signed-off-by: Laslo Hunhold <dev_AT_frign.de>

diff --git a/man/template/next_break.sh b/man/template/next_break.sh
index fee6187..39a0583 100644
--- a/man/template/next_break.sh
+++ b/man/template/next_break.sh
_AT_@ -82,7 +82,7 @@ main(void)
         printf("${REALTYPE}s in NUL-delimited input:\\\\n");
         for (off = 0; s[off] != '\\\\0'; off += ret) {
                 ret = grapheme_next_${TYPE}_break_utf8(s + off, SIZE_MAX);
- printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off);
         }
         printf("\\\\n");
 
_AT_@ -91,7 +91,7 @@ main(void)
         printf("${REALTYPE}s in input delimited to %zu bytes:\\\\n", len);
         for (off = 0; off < len; off += ret) {
                 ret = grapheme_next_${TYPE}_break_utf8(s + off, len - off);
- printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off);
         }
 
         return 0;
Received on Fri Oct 07 2022 - 12:41:42 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 07 2022 - 12:48:39 CEST