OSDN Git Service

Make format_ucs2() not use a variable-length array.
authorPeter Jones <pjones@redhat.com>
Mon, 25 Sep 2017 16:20:04 +0000 (12:20 -0400)
committerPeter Jones <pjones@redhat.com>
Mon, 25 Sep 2017 16:30:32 +0000 (12:30 -0400)
commit361cb221bdfca6f18f8e2e12b906d327762ab0f4
treec6f964baae2d32cee0f0c6d41c29265e4cf1189d
parent647e8198cf4c2391963ea26d6f54350d2ab87d08
Make format_ucs2() not use a variable-length array.

Coverity complains (during the build, as a "recoverable" error):

"dp.h", line 134: warning #1234: a variable-length array is not allowed inside
          of a statement expression
                uint16_t _ucs2buf[(len)];                               \
                         ^

So don't do that.

Signed-off-by: Peter Jones <pjones@redhat.com>
src/dp.h