From cec7d4bb60a897d0f98a2b3c5caf54aaf218b14e Mon Sep 17 00:00:00 2001 From: mccallum Date: Sun, 5 Jan 1997 23:17:52 +0000 Subject: [PATCH] ([NSGMutableCString -insertString:atIndex:]): Use -cStringNoCopy instead of the removed method -_cStringContents. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1995 72102866-910b-0410-8b05-ffd578937521 --- Source/NSGCString.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/NSGCString.m b/Source/NSGCString.m index 45137eb15..bb73d2af3 100644 --- a/Source/NSGCString.m +++ b/Source/NSGCString.m @@ -1,5 +1,5 @@ /* Implementation for GNUStep of NSStrings with C-string backing - Copyright (C) 1993,1994, 1996 Free Software Foundation, Inc. + Copyright (C) 1993,1994, 1996, 1997 Free Software Foundation, Inc. Written by: Andrew Kachites McCallum Date: March 1995 @@ -218,7 +218,7 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self, OBJC_REALLOC(_contents_chars, char, _capacity); } stringIncrementCountAndMakeHoleAt((NSGMutableCStringStruct*)self, index, c); - memcpy(_contents_chars + index, [aString _cStringContents], c); + memcpy(_contents_chars + index, [aString cStringNoCopy], c); _contents_chars[_count] = '\0'; }