git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10543
d7cf8633-e32d-0410-b094-
e92efae38249
static size_t Crypto_LoadFile(const char *path, char *buf, size_t nmax)
{
qfile_t *f = NULL;
- ssize_t n;
+ fs_offset_t n;
if(*fs_userdir)
f = FS_SysOpen(va("%s%s", fs_userdir, path), "rb", false);
if(!f)
char *p;
const char *q;
p = qcstatus;
- for(q = str; *q && p - qcstatus < (ssize_t)(sizeof(qcstatus)) - 1; ++q)
+ for(q = str; *q && p - qcstatus < (ptrdiff_t)(sizeof(qcstatus)) - 1; ++q)
if(*q != '\\' && *q != '\n')
*p++ = *q;
*p = 0;