1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-21 21:22:31 +03:00
Files
esp8266/cores/esp8266
Eli Lipsitz da48a52d7a Fix File::readString to work with binary data (#8742)
Previously, File::readString used a C-style string as an intermediate
buffer via the String += operator. This treats a NUL byte as a
terminator, making this function work incorrectly if the File contains
binary data.

This commit switches the function to use String::concat, which doesn't
treat NUL bytes any differently (and is a bit faster, because it doesn't
need to use strlen).
2022-12-06 22:56:49 +03:00
..
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2021-03-14 17:36:20 -07:00
2022-06-02 23:48:28 +02:00
2022-05-29 08:20:13 +03:00
2021-03-14 17:36:20 -07:00
2022-02-10 18:25:18 +01:00
2020-04-23 12:15:21 -04:00
2022-02-10 18:25:18 +01:00
2021-03-14 17:36:20 -07:00
2022-06-08 23:19:59 +02:00
2019-05-14 00:09:54 +02:00
2021-07-26 22:27:44 +02:00
2021-03-14 17:36:20 -07:00
2019-05-14 00:09:54 +02:00
2019-11-04 23:14:35 -03:00
2020-04-23 12:15:21 -04:00
2021-03-14 17:36:20 -07:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2021-07-26 22:27:44 +02:00
2022-06-14 18:33:09 +03:00
2020-07-09 09:59:49 -07:00
2022-11-03 08:58:53 +03:00
2022-11-03 08:58:53 +03:00
2014-12-01 00:34:28 +03:00