dyninstAPI: Fix a debug vsnprintf length
authorJosh Stone <jistone@redhat.com>
Tue, 21 Jan 2014 02:17:27 +0000 (18:17 -0800)
committerJosh Stone <jistone@redhat.com>
Tue, 21 Jan 2014 02:17:27 +0000 (18:17 -0800)
commitc0b8da550cb15040b296d5bff48a0c7c2371561e
tree19d8c13c7b793a18df9436c7cd231f7d36975241
parentd485638560cf4b3788ab3a6e3e35b4e18e83d5f9
dyninstAPI: Fix a debug vsnprintf length

The vsnprintf call is writing to an offset in the fixed errbuf, so it
needs to subtract that offset from the length told to vsnprintf.

Reported by coverity as OVERRUN.
dyninstAPI/src/debug.C