summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Penteker <tek@serverop.de>2019-03-18 23:13:08 +0100
committerThomas Penteker <tek@serverop.de>2019-03-18 23:13:08 +0100
commit49dd00643204107462d8d9d9b48e67d3df876777 (patch)
tree151fe710e16c82fea561e2ef3f9e715fd28e92a9
parent1e5341db7fd24bdd9bddf2fece098ace0ffb54ab (diff)
downloadhttpup-49dd00643204107462d8d9d9b48e67d3df876777.tar.gz
httpup-49dd00643204107462d8d9d9b48e67d3df876777.tar.xz
main.cpp: fix buffer overflow mentioned in FS#1718
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 626fc84..f788df8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -88,7 +88,7 @@ int main(int argc, char** argv)
target = htap.otherArguments()[1];
} else {
char* pwd = new char[256];
- if (getcwd(pwd, 265) == NULL) {
+ if (getcwd(pwd, 256) == NULL) {
delete pwd;
pwd = new char[1024];
if (getcwd(pwd, 1024) == NULL) {

Generated by cgit