diff options
-rw-r--r-- | include/vector.h | 4 | ||||
-rw-r--r-- | src/vector.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/vector.h b/include/vector.h index 8f7cbbcc..c35d22c9 100644 --- a/include/vector.h +++ b/include/vector.h @@ -441,7 +441,7 @@ void bc_slabvec_print(BcVec *v, const char *func); * contain @a s. * @param s The source string. */ -#define strcpy(d, l, s) strcpy(d, s) +#define bc_strcpy(d, l, s) strcpy(d, s) #else // _WIN32 @@ -452,7 +452,7 @@ void bc_slabvec_print(BcVec *v, const char *func); * contain @a s. * @param s The source string. */ -#define strcpy(d, l, s) strcpy_s(d, l, s) +#define bc_strcpy(d, l, s) strcpy_s(d, l, s) #endif // _WIN32 diff --git a/src/vector.c b/src/vector.c index 1cd90f72..ebc2e76c 100644 --- a/src/vector.c +++ b/src/vector.c @@ -461,7 +461,7 @@ static char* bc_slab_add(BcSlab *s, const char *str, size_t len) { ptr = (char*) (s->s + s->len); - strcpy(ptr, len, str); + bc_strcpy(ptr, len, str); s->len += len; |