mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-08 17:02:26 +03:00
Fix intermittent host tests failure (#4932)
MD5Builder tests have been randomly, non-repeatably failing due to a problem with the returned value of MD5Builder. Valgrind detected a strncpy with an overlapping memory range, which is an undefined operation. Fix it with a memmove instead, and get rid of a couple #define redefinitions which were causing compile warnings on the host side as well.
This commit is contained in:
committed by
Develo
parent
53091882b8
commit
96a340eb51
@ -21,7 +21,9 @@
|
||||
#define Character_h
|
||||
|
||||
#include <ctype.h>
|
||||
#undef isascii
|
||||
#define isascii(__c) ((unsigned)(__c)<=0177)
|
||||
#undef toascii
|
||||
#define toascii(__c) ((__c)&0177)
|
||||
|
||||
// WCharacter.h prototypes
|
||||
|
Reference in New Issue
Block a user