mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
b7812f2891
commit
012fdd0048
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue