Erroneously compared a character position to NUL, rather than setting it.
This commit is contained in:
parent
911b866230
commit
8e49f5242f
1 changed files with 3 additions and 3 deletions
|
|
@ -348,7 +348,7 @@ bool parse_transactions(std::istream& in,
|
|||
|
||||
int len = std::strlen(line);
|
||||
if (line[len - 1] == '\r')
|
||||
line[--len] == '\0';
|
||||
line[--len] = '\0';
|
||||
|
||||
beg_pos += len + 1;
|
||||
linenum++;
|
||||
|
|
@ -444,7 +444,7 @@ entry_t * parse_entry(std::istream& in, char * line, account_t * master,
|
|||
|
||||
int len = std::strlen(line);
|
||||
if (line[len - 1] == '\r')
|
||||
line[--len] == '\0';
|
||||
line[--len] = '\0';
|
||||
|
||||
end_pos = beg_pos + len + 1;
|
||||
linenum++;
|
||||
|
|
@ -631,7 +631,7 @@ unsigned int textual_parser_t::parse(std::istream& in,
|
|||
|
||||
int len = std::strlen(line);
|
||||
if (line[len - 1] == '\r')
|
||||
line[--len] == '\0';
|
||||
line[--len] = '\0';
|
||||
|
||||
end_pos = beg_pos + len + 1;
|
||||
linenum++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue