Permalink
Browse files

Fix segfault in readPostBody when CONTENT_LENGTH environmenet variabl…

…e is not defined
  • Loading branch information...
1 parent 297fa3e commit 092c6d72d9881bd2de513a152e81514b19bea314 @rouault rouault committed Apr 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 cgiutil.c
View
@@ -104,7 +104,7 @@ int readPostBody( cgiRequestObj *request, char **data )
}
}
- *data[data_len] = '\0';
+ (*data)[data_len] = '\0';
return MS_SUCCESS;
}

0 comments on commit 092c6d7

Please sign in to comment.