ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Component Object Model (COM) Development on Mac OS X
Subject:   Small goof in UTF16Create
Date:   2004-04-28 01:00:38
From:   vannote

I beleive


unsigned short* theStrP = new unsigned short[theStrSize];

should read


unsigned short* theStrP = new unsigned short[theStrSize + 1];

to avoid a buffer overrun when


theStrP[theIter] = 0;

is executed.


Regards



1 to 1 of 1
  1. Small goof in UTF16Create
    2004-05-10 17:18:07  ChristopherHunt [View]

1 to 1 of 1