Fix CDC error detection

The error detection assumed the buffer was null-terminated which was never
guaranteed.
This commit is contained in:
Markus Mäkelä
2018-08-27 12:11:42 +03:00
parent 02a65f311a
commit 01e1c616ba
2 changed files with 11 additions and 10 deletions

View File

@ -147,7 +147,7 @@ private:
bool read_row(std::string& dest);
void process_schema(json_t* json);
SRow process_row(json_t*);
bool is_error(const char* str);
bool is_error();
// Lower-level functions
int wait_for_event(short events);