* grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
\0. (add_length): Likewise.
This commit is contained in:
parent
4cebfa1a87
commit
2b3431017d
2 changed files with 8 additions and 2 deletions
|
@ -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 Lubomir Kundrak <lkundrak@redhat.com>
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ __argp_get_display_len (char *beg, char *end)
|
|||
|
||||
memset (&ps, 0, sizeof (ps));
|
||||
|
||||
for (ptr = beg; ptr < end; )
|
||||
for (ptr = beg; ptr < end && *ptr; )
|
||||
{
|
||||
wchar_t wc;
|
||||
size_t s;
|
||||
|
@ -148,7 +148,7 @@ add_length (char *ptr, char *end, size_t l)
|
|||
|
||||
memset (&ps, 0, sizeof (ps));
|
||||
|
||||
while (ptr < end)
|
||||
while (ptr < end && *ptr)
|
||||
{
|
||||
wchar_t wc;
|
||||
size_t s, k;
|
||||
|
|
Loading…
Reference in a new issue