...
 
Commits (4)
......@@ -4662,7 +4662,7 @@ bool sbbs_t::backup(const char* fname, int backup_level, bool rename)
if(!fexist(fname))
return false;
lprintf(LOG_DEBUG, "Backing-up %s (%lu bytes)", fname, flength(fname));
lprintf(LOG_DEBUG, "Backing-up %s (%lu bytes)", fname, (long)flength(fname));
return ::backup(fname, backup_level, rename) ? true : false;
}
......
......@@ -1421,7 +1421,7 @@ static BOOL send_headers(http_session_t *session, const char *status, int chunke
if(session->req.range_start || session->req.range_end) {
switch(stat_code) {
case 206: /* Partial reply */
safe_snprintf(header,sizeof(header),"%s: bytes %ld-%ld/%ld",get_header(HEAD_CONTENT_RANGE),session->req.range_start,session->req.range_end,stats.st_size);
safe_snprintf(header,sizeof(header),"%s: bytes %ld-%ld/%ld",get_header(HEAD_CONTENT_RANGE),session->req.range_start,session->req.range_end,(long)stats.st_size);
safecat(headers,header,MAX_HEADERS_SIZE);
break;
default:
......