summaryrefslogtreecommitdiffstats
path: root/pwnnel-blicker.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-08-11 18:05:37 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-08-11 18:05:37 +0200
commite3f6b14857466a285617fc792513934b7cb22932 (patch)
treea3ec4892bb63b8d07ee735085d282a02da1040d6 /pwnnel-blicker.c
parentAdd links back. (diff)
downloadPwnnel-Blicker-e3f6b14857466a285617fc792513934b7cb22932.tar.xz
Pwnnel-Blicker-e3f6b14857466a285617fc792513934b7cb22932.zip
Because fixing security holes in security exploits is hilarious.
Diffstat (limited to 'pwnnel-blicker.c')
-rwxr-xr-xpwnnel-blicker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pwnnel-blicker.c b/pwnnel-blicker.c
index 595aa34..3f65484 100755
--- a/pwnnel-blicker.c
+++ b/pwnnel-blicker.c
@@ -69,7 +69,7 @@ int main(int argc, char *argv[])
/* Oh god, do I miss /proc/self/exe. */
if (getenv("PWNPATH"))
- strcpy(self, getenv("PWNPATH"));
+ strncpy(self, getenv("PWNPATH"), sizeof(self));
else {
size = sizeof(path);
_NSGetExecutablePath(path, &size);