Fix for bug MXS-289

Added fix for bug MXS-289
This commit is contained in:
MassimilianoPinto
2015-07-27 18:44:05 +02:00
parent 6a92a419ff
commit 556e99b2a9
3 changed files with 5 additions and 5 deletions

View File

@ -809,7 +809,7 @@ int len, actual_len, col_len, seqno, ncols, i;
strncpy((char *)ptr, column, col_len); // Result string
ptr += col_len;
sprintf(column, "%s", router->master->remote ? router->master->remote : "");
sprintf(column, "%s", router->service->dbref->server->name ? router->service->dbref->server->name : "");
col_len = strlen(column);
*ptr++ = col_len; // Length of result string
strncpy((char *)ptr, column, col_len); // Result string