]> git.proxmox.com Git - spiceterm.git/commitdiff
ensure form fits in buf
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Mar 2019 12:28:35 +0000 (13:28 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Mar 2019 12:28:38 +0000 (13:28 +0100)
yeah this is hacky, but we'll remove this probably anyway soon...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
auth-pve.c

index d41f8bdeabf221bf10983741b32bbbb5f17acd20..797c6900e0b0ed1d71cbff1d1c5cb33e4ddfa10e 100644 (file)
@@ -74,8 +74,8 @@ pve_auth_verify(const char *clientip, const char *username, const char *passwd)
         goto err;
     }
 
-    char buf[8192];
-    char form[8192];
+    char buf[8292];
+    char form[8092];
 
     char *p = form;
     p = urlencode(p, "username");