This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/19038] argp.doc prints incorrectly when it starts with "\v"
- From: "kstauffer at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 01 Oct 2015 00:39:43 +0000
- Subject: [Bug libc/19038] argp.doc prints incorrectly when it starts with "\v"
- Auto-submitted: auto-generated
- References: <bug-19038-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19038
--- Comment #1 from Kenny Stauffer <kstauffer at gmail dot com> ---
It looks like the error stems from the argp_doc function. This section:
1469 if (doc)
1470 {
1471 char *vt = strchr (doc, '\v');
1472 inp_text = post ? (vt ? vt + 1 : 0) : doc;
1473 inp_text_limit = (!post && vt) ? (vt - doc) : 0;
1474 }
When processing what should come before the '\v', this section sets inp_text =
doc and inp_text_limit = 0. That value of inp_text_limit is interpreted later
to mean "print the whole string."
--
You are receiving this mail because:
You are on the CC list for the bug.