Fix initialisation bug pointed out by David

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23326 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-08-25 11:47:20 +00:00
parent b7812f2891
commit 012fdd0048

View file

@ -20,7 +20,8 @@
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111 USA.
<title>NSScanner class reference</title>
$Date$ $Revision$
@ -219,9 +220,9 @@ typedef struct {
else
{
_isUnicode = NO;
_string = [_holder initWithCString:
(char*)((ivars)aString)->_contents.c
length: ((ivars)aString)->_count];
_string = [_holder initWithBytes: ((ivars)aString)->_contents.c
length: ((ivars)aString)->_count
encoding: internalEncoding];
}
}
else if (c == NSConstantStringClass)