Do not use strcpy() in the (obsolete) amatch extension.

In releasetest.tcl, run Apple tests using -Os instead of -O1

FossilOrigin-Name: 4440e42031b9cb0edf9a8621cd4f46f209392940ec5b9eefcf8c1e3fef5f7b76
This commit is contained in:
drh
2017-05-23 19:35:20 +00:00
parent 1d1fc5e385
commit 92b71757f7
4 changed files with 9 additions and 15 deletions
-6
View File
@@ -1001,7 +1001,6 @@ static void amatchWriteCost(amatch_word *pWord){
/* Circumvent compiler warnings about the use of strcpy() by supplying
** our own implementation.
*/
#if defined(__OpenBSD__)
static void amatchStrcpy(char *dest, const char *src){
while( (*(dest++) = *(src++))!=0 ){}
}
@@ -1009,11 +1008,6 @@ static void amatchStrcat(char *dest, const char *src){
while( *dest ) dest++;
amatchStrcpy(dest, src);
}
#else
# define amatchStrcpy strcpy
# define amatchStrcat strcat
#endif
/*
** Add a new amatch_word object to the queue.