ref: 7575684bc0205e7079aa76dff855d08421658f85
parent: b118d0c449931045c85c424556684d6ae4854531
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Fri Sep 23 04:24:42 EDT 2011
webfs: fix cookie truncation bug, makes ebay work
--- a/sys/src/cmd/webfs/cookies.c
+++ b/sys/src/cmd/webfs/cookies.c
@@ -1031,7 +1031,6 @@
};
enum
{
- AuxBuf = 4096,
MaxCtext = 16*1024*1024,
};
@@ -1162,12 +1161,12 @@
char*
httpcookies(char *dom, char *path, int issecure)
{
- char buf[1024];
+ char *s;
Jar *j;
syncjar(jar);
j = cookiesearch(jar, dom, path, issecure);
- snprint(buf, sizeof buf, "%J", j);
+ s = smprint("%J", j);
closejar(j);
- return estrdup(buf);
+ return s;
}