Skip to content

Commit

Permalink
fix - multiple build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TorusHyperV committed Sep 4, 2024
1 parent 244c6b1 commit ad66e4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/exfat_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static int exfat_ucstoutf8(iconv_t cd, const unsigned char *ins, const unsigned
inb_left = ins_len;
outb_left = outs_len - 1; // reserve 1 byte for NUL

if (iconv(cd, (char **)&inp, &inb_left, &outp, &outb_left) == (size_t)(-1))
if (iconv(cd, (const char **)&inp, &inb_left, &outp, &outb_left) == (size_t)(-1))
{
// Regardless of the value of errno
log_error("exfat_ucstoutf8: iconv failed %s\n", strerror(errno));
Expand Down
2 changes: 2 additions & 0 deletions src/file_xb1_bootcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include "filegen.h"
#include "common.h"

#define max(x,y) (((int)((x)<(y)) * (y)) + ((int)((y)<=(x)) * (x)))

#define XB1_BOOTCAP_MAXSIZE 0x400

/*@ requires valid_register_header_check(file_stat); */
Expand Down
2 changes: 1 addition & 1 deletion src/ntfs_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static int ntfs_ucstoutf8(iconv_t cd, const ntfschar *ins, const int ins_len, ch
outb_left = outs_len - 1; // reserve 1 byte for NUL

*outp = '\0';
if (iconv(cd, (char**)&inp, &inb_left, &outp, &outb_left) == (size_t)(-1))
if (iconv(cd, (const char**)&inp, &inb_left, &outp, &outb_left) == (size_t)(-1))
{
// Regardless of the value of errno
log_error("ntfs_ucstoutf8: iconv failed\n");
Expand Down

0 comments on commit ad66e4e

Please sign in to comment.