mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
aee7ff0d91
commit
68d23b3f82
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
||||||
#include <Foundation/NSString.h>
|
#include <Foundation/NSString.h>
|
||||||
#include <Foundation/NSException.h>
|
#include <Foundation/NSException.h>
|
||||||
#include <Foundation/NSGData.h>
|
#include <Foundation/NSGData.h>
|
||||||
|
#include <string.h> /* for memset() */
|
||||||
|
|
||||||
/* xxx Pretty messy. Needs work. */
|
/* xxx Pretty messy. Needs work. */
|
||||||
|
|
||||||
|
@ -511,7 +512,7 @@ static Class NSMutableData_concrete_class;
|
||||||
- (id) initWithLength: (unsigned int)length
|
- (id) initWithLength: (unsigned int)length
|
||||||
{
|
{
|
||||||
[self initWithCapacity:length];
|
[self initWithCapacity:length];
|
||||||
memset([self bytes], 0, length);
|
memset ([self bytes], 0, length);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue