mirror of
https://github.com/fluencelabs/sqlite
synced 2025-06-21 20:01:35 +00:00
fix off-by-one in returning OK string
This commit is contained in:
@ -149,7 +149,7 @@ const char *invoke(char *request, int request_size) {
|
|||||||
} else {
|
} else {
|
||||||
// if a request was successfull, sqlite doesn't return anything as the result string
|
// if a request was successfull, sqlite doesn't return anything as the result string
|
||||||
const char success_result[] = "OK";
|
const char success_result[] = "OK";
|
||||||
response = write_response((char *)success_result, sizeof(success_result));
|
response = write_response((char *)success_result, strlen(success_result));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user