aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-10-05 17:21:06 +0200
committerJan200101 <sentrycraft123@gmail.com>2020-10-05 17:21:06 +0200
commit26b0417ced82ad849e08db8e8aed0d5529c2b433 (patch)
tree02919ad1eae7470b893ecb511c23b6373216bfaf
parenta65cd5add177b4a883b308dc3b9504e93abeeca7 (diff)
downloadpolecat-26b0417ced82ad849e08db8e8aed0d5529c2b433.tar.gz
polecat-26b0417ced82ad849e08db8e8aed0d5529c2b433.zip
fix compiler warning, replace bin,obj ignore with build
-rw-r--r--.gitignore3
-rw-r--r--src/wine.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index d1c45fc..afa4a44 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
-bin
-obj
+build
*.tar*
zig-cache
diff --git a/src/wine.c b/src/wine.c
index 687150c..16de494 100644
--- a/src/wine.c
+++ b/src/wine.c
@@ -71,7 +71,7 @@ int wine_download(int argc, char** argv)
getDataDir(datadir, sizeof(datadir));
makeDir(datadir);
- strncpy(downloadpath, datadir, sizeof(downloadpath) - 1);
+ strncpy(downloadpath, datadir, sizeof(downloadpath));
strncat(downloadpath, "/", sizeof(downloadpath) - strlen(downloadpath) - 1);
strncat(downloadpath, name, sizeof(downloadpath) - strlen(downloadpath) - 1);