Closed Bug 405534 Opened 17 years ago Closed 17 years ago

AvmDebugMsg eats last output character

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: markh, Assigned: markh)

Details

Attachments

(1 file)

The vararg version of AvmDebugMsg prints one character less than was specified - which is likely to be the trailing \n.

The problem is that StringCbVPrintf() is passed the result of _vscprintf() - but according to the docs, _vscprintf() returns the count excluding the trailing \0, while StringCbVPrintf() expects space for the \0 to be included.

Attaching a patch that fixes the problem.
Attachment #290304 - Flags: review+
thanks ed - checked in 237:0161c573f53f
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: