diff options
author | James Bursa <james@netsurf-browser.org> | 2002-06-21 18:16:24 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2002-06-21 18:16:24 +0000 |
commit | 0a5d2d0dafe1ab811f02511f298953d06ccfeb9f (patch) | |
tree | fdff5200dc3c4b97919c6bb1a8a897e9ae78b0b6 /utils/utils.c | |
parent | 4bd56554081f454ca8a7798032360d060f3aaf3b (diff) | |
download | netsurf-0a5d2d0dafe1ab811f02511f298953d06ccfeb9f.tar.gz netsurf-0a5d2d0dafe1ab811f02511f298953d06ccfeb9f.tar.bz2 |
[project @ 2002-06-21 18:16:24 by bursa]
Implemented clear, fixed inline / float bugs, eliminated many compiler warnings.
svn path=/import/netsurf/; revision=22
Diffstat (limited to 'utils/utils.c')
-rw-r--r-- | utils/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/utils.c b/utils/utils.c index 857c205c1..ffdf029ae 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -1,5 +1,5 @@ /** - * $Id: utils.c,v 1.3 2002/06/18 21:24:21 bursa Exp $ + * $Id: utils.c,v 1.4 2002/06/21 18:16:24 bursa Exp $ */ #include <ctype.h> @@ -63,10 +63,10 @@ char * load(const char * const path) if (fp == 0) die("Failed to open file"); if (fseek(fp, 0, SEEK_END) != 0) die("fseek() failed"); if ((size = ftell(fp)) == -1) die("ftell() failed"); - buf = xcalloc(size, 1); + buf = xcalloc((size_t) size, 1); if (fseek(fp, 0, SEEK_SET) != 0) die("fseek() failed"); - read = fread(buf, 1, size, fp); + read = fread(buf, 1, (size_t) size, fp); if (read < size) die("fread() failed"); return buf; |