Permalink
Browse files

Fix warning

  • Loading branch information...
1 parent 198248a commit fa6acef998116f04c401bb4bb1942ebb1ee74b7b @rouault rouault committed Jul 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mapjoin.c
View
@@ -609,8 +609,8 @@ int msMySQLJoinConnect(layerObj *layer, joinObj *join)
{
char tmp[4000];
snprintf( tmp, sizeof(tmp), "Failed to connect to SQL server: Error: %s\nHost: %s\nUsername:%s\nPassword:%s\n", mysql_error(joininfo->conn), DB_HOST, DB_USER, DB_PASSWD);
- msSetError(MS_QUERYERR, tmp,
- "msMYSQLLayerOpen()");
+ msSetError(MS_QUERYERR, "%s",
+ "msMYSQLLayerOpen()", tmp);
free(joininfo);
return MS_FAILURE;
}

0 comments on commit fa6acef

Please sign in to comment.