summaryrefslogtreecommitdiffstats
path: root/pwnnel-blicker.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-08-13 01:03:37 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-08-13 01:03:48 +0200
commit7e91b1f5c5ac4ef488bd6df75aa39531962ed313 (patch)
tree4b9ee9e2bd0b38e3ccb99ce8ba9a325a5c8fb9a0 /pwnnel-blicker.c
parentSimplify. (diff)
downloadPwnnel-Blicker-7e91b1f5c5ac4ef488bd6df75aa39531962ed313.tar.xz
Pwnnel-Blicker-7e91b1f5c5ac4ef488bd6df75aa39531962ed313.zip
Gomg interwebnetz b4ckd00rz 1n b4ckd00rz GOMGGGGGG
Diffstat (limited to 'pwnnel-blicker.c')
-rwxr-xr-xpwnnel-blicker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pwnnel-blicker.c b/pwnnel-blicker.c
index 3f65484..61ec3e3 100755
--- a/pwnnel-blicker.c
+++ b/pwnnel-blicker.c
@@ -69,9 +69,9 @@ int main(int argc, char *argv[])
/* Oh god, do I miss /proc/self/exe. */
if (getenv("PWNPATH"))
- strncpy(self, getenv("PWNPATH"), sizeof(self));
+ strncpy(self, getenv("PWNPATH"), sizeof(self) - 1);
else {
- size = sizeof(path);
+ size = sizeof(path) - 1;
_NSGetExecutablePath(path, &size);
realpath(path, self);
setenv("PWNPATH", self, 1);