]> git.ipfire.org Git - thirdparty/asterisk.git/commit
menuselect/menuselect_curses: Resolves sprintf usage error
authorMatthew Fredrickson <creslin@digium.com>
Fri, 15 Jun 2018 20:21:27 +0000 (15:21 -0500)
committerMatthew Fredrickson <creslin@digium.com>
Fri, 15 Jun 2018 23:51:58 +0000 (18:51 -0500)
commit8732d62334c3059ef1953b8bf3a124b7126f61eb
tree62910219fbce7c5c59df31076773e47730a1ced6
parentc857c7134222943cfba84ce6e5a731232df63efd
menuselect/menuselect_curses: Resolves sprintf usage error

Acccording to the man page for sprintf, using the same buffer for
output as one used as an input yields undefined behavior.
This patch should work around this problem.

ASTERISK-27903
Reported-by: Alexander Traud
Change-Id: I2213dcb454aff26457e2e4cc9c6821276463ae3a
menuselect/menuselect_curses.c