Skip to content

Commit 90e5b04

Browse files
committed
Fixes String(float) issue with Stack Smashing
1 parent 7cbd148 commit 90e5b04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: cores/esp32/stdlib_noniso.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ char* ultoa(unsigned long value, char* result, int base) {
8888
return result;
8989
}
9090

91-
char * dtostrf(double number, signed char width, unsigned int prec, char *s) {
91+
char * dtostrf(double number, signed int width, unsigned int prec, char *s) {
9292
bool negative = false;
9393

9494
if (isnan(number)) {

Diff for: cores/esp32/stdlib_noniso.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ char* utoa (unsigned int val, char *s, int radix);
3939

4040
char* ultoa (unsigned long val, char *s, int radix);
4141

42-
char* dtostrf (double val, signed char width, unsigned int prec, char *s);
42+
char* dtostrf (double val, signed int width, unsigned int prec, char *s);
4343

4444
#ifdef __cplusplus
4545
} // extern "C"

0 commit comments

Comments
 (0)