Whoops
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
#include "helper.h"
|
#include "helper.h"
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
int noom_startswith(const char* str, const char* compare) {
|
int noom_startswith(const char* str, const char* compare) {
|
||||||
@@ -59,7 +57,7 @@ void noom_safe_strcpy(char* buffer, noom_uint_t* pos, noom_uint_t buffer_size, c
|
|||||||
char *noom_strndup(const char *s, const noom_uint_t len) {
|
char *noom_strndup(const char *s, const noom_uint_t len) {
|
||||||
char *whar = noom_alloc(len + 1);
|
char *whar = noom_alloc(len + 1);
|
||||||
if (whar == 0) return 0;
|
if (whar == 0) return 0;
|
||||||
memcpy(whar, s, len);
|
noom_memcpy(whar, s, len);
|
||||||
whar[len] = '\0';
|
whar[len] = '\0';
|
||||||
return whar;
|
return whar;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user