diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-12-28 03:01:31 -0800 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-12-28 03:01:31 -0800 |
commit | 52e32341bcab3ca814086f5c0f80feb25079cfc9 (patch) | |
tree | 650b99dcd71a6407efbab9fb8e8dca269eff32e4 /pinyweb | |
parent | d8f1ccf07542579f6e2398c979f094abf1870e1a (diff) | |
download | piny-code-52e32341bcab3ca814086f5c0f80feb25079cfc9.tar.gz piny-code-52e32341bcab3ca814086f5c0f80feb25079cfc9.zip |
haha snprintf returns the stupid thing
Diffstat (limited to 'pinyweb')
-rw-r--r-- | pinyweb/debian/changelog | 6 | ||||
-rw-r--r-- | pinyweb/suid/piny-suid.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/pinyweb/debian/changelog b/pinyweb/debian/changelog index 72fb23b..33e7f7d 100644 --- a/pinyweb/debian/changelog +++ b/pinyweb/debian/changelog @@ -1,3 +1,9 @@ +pinyweb (0.7) unstable; urgency=low + + * it turns out i'm an idiot + + -- Julian Blake Kongslie <jblake@omgwallhack.org> Tue, 28 Dec 2010 03:01:23 -0800 + pinyweb (0.6) unstable; urgency=low * and more errors diff --git a/pinyweb/suid/piny-suid.c b/pinyweb/suid/piny-suid.c index cbbb7f1..5c5b4d3 100644 --- a/pinyweb/suid/piny-suid.c +++ b/pinyweb/suid/piny-suid.c @@ -103,7 +103,7 @@ int main( int argc, char *argv[] ) { return 1; }; - size_t sz = snprintf( NULL, 0, "/usr/share/piny-suid/%s", argv[2] ); + size_t sz = snprintf( NULL, 0, "/usr/share/piny-suid/%s", argv[2] ) + 1; char buf[sz]; snprintf( buf, sz, "/usr/share/piny-suid/%s", argv[2] ); |