Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions src/format_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,8 @@
# define SIZE_T_PF "%u"
#endif

#if SIZEOF_OFF_T == 8
# ifdef PRIu64
# define OFF_T_PF "%" PRIu64
# else
# define OFF_T_PF "%llu"
# endif
#ifdef PRIu64
# define OFF_T_PF "%" PRIu64
#else
# ifdef PRIu32
# define OFF_T_PF "%" PRIu32
# else
# define OFF_T_PF "%lu"
# endif
# define OFF_T_PF "%llu"
#endif

2 changes: 1 addition & 1 deletion src/legacy_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ int range_fetch_read_http_headers(struct range_fetch *rf) {
p += 2;
buflwr(buf);
{ /* Remove the trailing \r\n from the value */
int len = strcspn(p, "\r\n");
uint64_t len = strcspn(p, "\r\n");
p[len] = 0;
}
/* buf is the header name (lower-cased), p the value */
Expand Down