Changed sprintf calls to snprintf calls and fixed compiler warnings.

This commit is contained in:
Markus Makela
2015-08-18 10:50:48 +03:00
parent 501ea8ffc2
commit 98ab399e6e
9 changed files with 75 additions and 26 deletions

View File

@ -1031,7 +1031,8 @@ SESSION *ptr;
}
cbdata->index++;
row = resultset_make_row(set);
sprintf(buf, "%p", ptr);
snprintf(buf,19, "%p", ptr);
buf[19] = '\0';
resultset_row_set(row, 0, buf);
resultset_row_set(row, 1, ((ptr->client && ptr->client->remote)
? ptr->client->remote : ""));