8000 don't decrease size twice · rdowning-triax/arduino-esp32@e9e9f61 · GitHub
[go: up one dir, main page]

Skip to content

Commit e9e9f61

Browse files
don't decrease size twice
1 parent 409ceaa commit e9e9f61

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libraries/WiFiClientSecure/src/WiFiClientSecure.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ int WiFiClientSecure::read(uint8_t *buf, size_t size)
188188
if(_peek >= 0){
189189
buf[0] = _peek;
190190
_peek = -1;
191-
size--;
192191
int ret = read(buf+1, size-1);
193192
return 1 + ((ret > 0) ? ret : 0);
194193
}

0 commit comments

Comments
 (0)
0