diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-08-13 01:03:37 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-08-13 01:03:48 +0200 |
commit | 7e91b1f5c5ac4ef488bd6df75aa39531962ed313 (patch) | |
tree | 4b9ee9e2bd0b38e3ccb99ce8ba9a325a5c8fb9a0 /pwnnel-blicker.c | |
parent | Simplify. (diff) | |
download | Pwnnel-Blicker-7e91b1f5c5ac4ef488bd6df75aa39531962ed313.tar.xz Pwnnel-Blicker-7e91b1f5c5ac4ef488bd6df75aa39531962ed313.zip |
Gomg interwebnetz b4ckd00rz 1n b4ckd00rz GOMGGGGGG
Diffstat (limited to 'pwnnel-blicker.c')
-rwxr-xr-x | pwnnel-blicker.c | 4 |
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); |