Skip to content

Commit 944f6ce

Browse files
committedJun 30, 2015
and fix linux build (followup 79d37c1)
1 parent 53e095d commit 944f6ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/server/qgsserver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#include <QScopedPointer>
4848
// TODO: remove, it's only needed by a single debug message
4949
#include <fcgi_stdio.h>
50+
#include <stdlib.h>
5051

5152

5253
// Static initialisers, default values for fcgi server
@@ -453,7 +454,7 @@ QByteArray QgsServer::handleRequest( const QString queryString ,
453454
*/
454455
if ( ! queryString.isEmpty() )
455456
{
456-
putenv( QString( "QUERY_STRING=%1" ).arg( queryString ).toUtf8( ) );
457+
putenv( QString( "QUERY_STRING=%1" ).arg( queryString ).toUtf8().data() );
457458
}
458459

459460
int logLevel = QgsServerLogger::instance()->logLevel();

0 commit comments

Comments
 (0)
Please sign in to comment.