mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([NSData +_setConcreteClass:]): Include <string.h> for memset().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1167 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a0d31dfff1
commit
8629f4acda
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSGData.h>
|
||||
#include <string.h> /* for memset() */
|
||||
|
||||
/* xxx Pretty messy. Needs work. */
|
||||
|
||||
|
@ -511,7 +512,7 @@ static Class NSMutableData_concrete_class;
|
|||
- (id) initWithLength: (unsigned int)length
|
||||
{
|
||||
[self initWithCapacity:length];
|
||||
memset([self bytes], 0, length);
|
||||
memset ([self bytes], 0, length);
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue