Fix compiler warnings in system tests

This commit is contained in:
Timofey Turenko
2019-02-27 23:15:36 +02:00
parent cc3dbeeb6c
commit 21fc015635
4 changed files with 10 additions and 9 deletions

View File

@ -1964,14 +1964,14 @@ void TestConnections::check_current_connections(int m, int value)
int TestConnections::take_snapshot(char * snapshot_name)
{
char str[4096];
char str[strlen(take_snapshot_command) + strlen(snapshot_name) + 2];
sprintf(str, "%s %s", take_snapshot_command, snapshot_name);
return system(str);
}
int TestConnections::revert_snapshot(char * snapshot_name)
{
char str[4096];
char str[strlen(revert_snapshot_command) + strlen(snapshot_name) + 2];
sprintf(str, "%s %s", revert_snapshot_command, snapshot_name);
return system(str);
}