Commit abd61841 authored by Pavel Emelyanov's avatar Pavel Emelyanov

pb: Fix EOL detection in pretty parser

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 94722c2e
...@@ -352,7 +352,7 @@ static int pb_show_pretty(pb_pr_field_t *field) ...@@ -352,7 +352,7 @@ static int pb_show_pretty(pb_pr_field_t *field)
static void pb_copy_fmt(const char *fmt, char *to) static void pb_copy_fmt(const char *fmt, char *to)
{ {
while (*fmt != ' ') { while (*fmt != ' ' && *fmt != '\0') {
*to = *fmt; *to = *fmt;
to++; to++;
fmt++; fmt++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment