ifix ploot-text using argv[0] - ploot - simple plotting tools Err bitreich.org 70 hgit clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot URL:git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot bitreich.org 70 1Log /scm/ploot/log.gph bitreich.org 70 1Files /scm/ploot/files.gph bitreich.org 70 1Refs /scm/ploot/refs.gph bitreich.org 70 1Tags /scm/ploot/tag bitreich.org 70 1README /scm/ploot/file/README.md.gph bitreich.org 70 1LICENSE /scm/ploot/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit f40c90855b60ca35db31fa76f058a3c250a45ffd /scm/ploot/commit/f40c90855b60ca35db31fa76f058a3c250a45ffd.gph bitreich.org 70 1parent 01a01b8547e85c8e1a33b4a7e42fd928c2f1f0ce /scm/ploot/commit/01a01b8547e85c8e1a33b4a7e42fd928c2f1f0ce.gph bitreich.org 70 hAuthor: Josuah Demangeon URL:mailto:me@josuah.net bitreich.org 70 iDate: Sun, 11 Oct 2020 17:17:04 +0200 Err bitreich.org 70 i Err bitreich.org 70 ifix ploot-text using argv[0] Err bitreich.org 70 i Err bitreich.org 70 iOverriding optind appear to be undefined by the standard library. Err bitreich.org 70 iThis lead to a bug making ploot-text unusable depending on the libc. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M ploot-text.c | 1 - Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 0 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/ploot-text.c b/ploot-text.c /scm/ploot/file/ploot-text.c.gph bitreich.org 70 i@@ -25,7 +25,6 @@ main(int argc, char **argv) Err bitreich.org 70 i int c, row; Err bitreich.org 70 i Err bitreich.org 70 i ft = &font8; Err bitreich.org 70 i- optind = 0; Err bitreich.org 70 i while ((c = getopt(argc, argv, "12")) > -1) { Err bitreich.org 70 i switch (c) { Err bitreich.org 70 i case '1': Err bitreich.org 70 .