Skip to content

Commit

Permalink
Aim to fix va_copy issue in rcons
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 13, 2017
1 parent 487cf1d commit 8c49c29
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libr/cons/cons.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,14 +793,11 @@ R_API void r_cons_printf_list(const char *format, va_list ap) {
written = vsnprintf (I.buffer + I.buffer_len, size, format, ap);
if (written >= size) { /* not all bytes were written */
palloc (written);
va_copy (ap, ap2);
va_copy (ap2, ap);
written = vsnprintf (I.buffer + I.buffer_len, written, format, ap2);
if (written >= size) {
palloc (written);
goto club;
}
va_end (ap2);
}
I.buffer_len += written;
} else {
Expand Down

0 comments on commit 8c49c29

Please sign in to comment.