8000 small fix to stop crash on unrecognized packets (#4092) · gitsly/Arduino@fb7c519 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb7c519

Browse files
mkillewalddevyte
authored andcommitted
small fix to stop crash on unrecognized packets (esp8266#4092)
1 parent a19ff35 commit fb7c519

File tree

< 8000 button data-component="IconButton" type="button" data-testid="collapse-file-tree-button" aria-expanded="true" aria-controls="diff_file_tree" data-analytics-opt-out="true" class="prc-Button-ButtonBase-c50BI d-none d-md-flex position-relative fgColor-muted prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="invisible" aria-describedby=":Rsatdab:-loading-announcement" aria-labelledby=":R4atdab:">

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ArduinoOTA/ArduinoOTA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ int ArduinoOTAClass::parseInt(){
149149
for(index = 0; index < sizeof(data); ++index){
150150
value = _udp_ota->peek();
151151
if(value < '0' || value > '9'){
152-
data[index++] = '\0';
152+
data[index] = '\0';
153153
return atoi(data);
154154
}
155155
data[index] = _udp_ota->read();

0 commit comments

Comments
 (0)
0