This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/19038] argp.doc prints incorrectly when it starts with "\v"


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]