Skip to content
Closed
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
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y cmake valgrind help2man
sudo apt-get install -y cmake valgrind help2man clang-tools

- name: Install Dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install cmake sed help2man
brew install cmake gnu-sed help2man

- name: Set Compiler and Flags
run: |
Expand Down
4 changes: 2 additions & 2 deletions nifti2/nifti_tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ int fill_cmd_string( nt_opts * opts, int argc, const char * argv[])
if( has_space ) len = snprintf(cp, remain, " '%s'", argv[ac]);
else len = snprintf(cp, remain, " %s", argv[ac]);

if( len < 0 || len >= remain ) {
if( len < 0 || (size_t)len >= remain ) {
fprintf(stderr,"FCS: error parsing command, continuing...\n");
return 1;
}
Expand Down Expand Up @@ -2368,7 +2368,7 @@ static char * read_file_text(const char * filename, int * length)
bytes = fread(text, sizeof(char), len64, fp);
fclose(fp); /* in any case */

if( bytes != len64 ) {
if( bytes != (size_t)len64 ) {
fprintf(stderr,"** RFT: read only %zu of %" PRId64 " bytes from %s\n",
bytes, len64, filename);
free(text);
Expand Down
2 changes: 1 addition & 1 deletion niftilib/nifti1_tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ int fill_cmd_string( nt_opts * opts, int argc, const char * argv[])
if( has_space ) len = snprintf(cp, remain, " '%s'", argv[ac]);
else len = snprintf(cp, remain, " %s", argv[ac]);

if( len < 0 || len >= remain ) {
if( len < 0 || (size_t)len >= remain ) {
fprintf(stderr,"FCS: error parsing command, continuing...\n");
return 1;
}
Expand Down
Loading