瀏覽代碼

Null-terminate string in CivetServer::getParam

bel 11 年之前
父節點
當前提交
24dfa15f88
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/CivetServer.cpp

+ 1 - 1
src/CivetServer.cpp

@@ -80,7 +80,7 @@ CivetServer::CivetServer(const char **options,
         userCloseHandler = NULL;
     }
     callbacks.connection_close = closeHandler;
-    me->postDataLen = 0;
+    postDataLen = 0;
     context = mg_start(&callbacks, this, options);
 }