Browse Source

Fix compiler warning

main
PaulStoffregen 5 years ago
parent
commit
c4fe5e9303
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/Stream.cpp

+ 1
- 1
teensy3/Stream.cpp View File

{ {
if(target == nullptr) return true; if(target == nullptr) return true;
size_t tlen = (terminator==nullptr)?0:strlen(terminator); size_t tlen = (terminator==nullptr)?0:strlen(terminator);
return findUntil(target, strlen(target), terminator, strlen(terminator));
return findUntil(target, strlen(target), terminator, tlen);
} }


// reads data from the stream until the target string of the given length is found // reads data from the stream until the target string of the given length is found

Loading…
Cancel
Save