* grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on

\0.
	(add_length): Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-26 20:32:37 +01:00
parent 4cebfa1a87
commit 2b3431017d
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
\0.
(add_length): Likewise.
2012-02-26 Vladimir Serbinenko <phcoder@gmail.com> 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2012-02-26 Lubomir Kundrak <lkundrak@redhat.com> 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>

View file

@ -127,7 +127,7 @@ __argp_get_display_len (char *beg, char *end)
memset (&ps, 0, sizeof (ps)); memset (&ps, 0, sizeof (ps));
for (ptr = beg; ptr < end; ) for (ptr = beg; ptr < end && *ptr; )
{ {
wchar_t wc; wchar_t wc;
size_t s; size_t s;
@ -148,7 +148,7 @@ add_length (char *ptr, char *end, size_t l)
memset (&ps, 0, sizeof (ps)); memset (&ps, 0, sizeof (ps));
while (ptr < end) while (ptr < end && *ptr)
{ {
wchar_t wc; wchar_t wc;
size_t s, k; size_t s, k;