diff options
author | James Bursa <james@netsurf-browser.org> | 2004-06-27 23:24:11 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-06-27 23:24:11 +0000 |
commit | a1d73ecd110f6cc252f6146672802f87cc45723d (patch) | |
tree | b7cf1aaa3ca066b9d4281fed890e82c470733fc2 /utils | |
parent | 79a10e41a4be1a718df36e54036cd1666f967fef (diff) | |
download | netsurf-a1d73ecd110f6cc252f6146672802f87cc45723d.tar.gz netsurf-a1d73ecd110f6cc252f6146672802f87cc45723d.tar.bz2 |
[project @ 2004-06-27 23:24:11 by bursa]
Rewritten download window. Now downloads direct to file. New download window gui.
svn path=/import/netsurf/; revision=1020
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/utils.c b/utils/utils.c index 92f064bc4..ca33051cf 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -308,7 +308,7 @@ void clean_cookiejar(void) { /** * Does a simple conversion which assumes the user speaks English. The buffer - * returned is one of two static ones so may change each time this call is + * returned is one of three static ones so may change each time this call is * made. Don't store the buffer for later use. It's done this way for * convenience and to fight possible memory leaks, it is not necessarily pretty. **/ @@ -316,12 +316,15 @@ void clean_cookiejar(void) { char *human_friendly_bytesize(unsigned long bsize) { static char buffer1[BYTESIZE_BUFFER_SIZE]; static char buffer2[BYTESIZE_BUFFER_SIZE]; - static char *curbuffer = buffer2; + static char buffer3[BYTESIZE_BUFFER_SIZE]; + static char *curbuffer = buffer3; float bytesize = (float)bsize; if (curbuffer == buffer1) curbuffer = buffer2; + else if (curbuffer == buffer2) + curbuffer = buffer3; else curbuffer = buffer1; |