Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGyver committed Apr 25, 2021
1 parent 6daf88c commit fb5a09b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion minimLibs/asyncReadTest/AsyncStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AsyncStream {
}
char ch = _port -> read();
if (ch == _ter) {
buf[_count] = NULL;
buf[_count] = '\0';
_parseF = false;
return true;
} else if (_count < SIZE - 1) buf[_count++] = ch;
Expand Down
2 changes: 1 addition & 1 deletion minimLibs/parseTest/Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Parser {
int i = 0, j = 0; // счётчики
while (buf[i]) { // пока не NULL
if (buf[i] == div) { // если разделитель
buf[i] = NULL; // меняем на NULL
buf[i] = '\0'; // меняем на NULL
str[++j] = buf + i + 1; // запоминаем начало строки
}
i++;
Expand Down

0 comments on commit fb5a09b

Please sign in to comment.