author | Sebastian Harl <sh@tokkee.org> | |
Wed, 20 Mar 2013 06:30:43 +0000 (23:30 -0700) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 20 Mar 2013 06:30:43 +0000 (23:30 -0700) | ||
commit | 6f6e12a94487f7bdf9efe2d5f1733684df6d75a6 | |
tree | a0843b3a56bd5270554ee0393f3bba80b1c124fb | tree | snapshot |
parent | bcf49768cccf7b536d6c4c741afce40b817b3309 | commit | diff |
utils strbuf: Copy va_lists rather than using them twice.
After a va_list has been passed to a function that uses va_arg(), the value of
the va_list is undefined. Thus, rather copy the list before using it for the
first time to make sure we've got a valid va_list object on the second usage.
After a va_list has been passed to a function that uses va_arg(), the value of
the va_list is undefined. Thus, rather copy the list before using it for the
first time to make sure we've got a valid va_list object on the second usage.
src/utils/strbuf.c | diff | blob | history |