Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
Signed-off-by: leleliu008 <leleliu008@gmail.com>
  • Loading branch information
leleliu008 committed Mar 17, 2024
1 parent 329a253 commit d3697c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos-brew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ jobs:
def install
cc = Formula["llvm"].opt_bin/"clang"
system "cmake", "-S", ".", "-B", "build", "-DCMAKE_C_COMPILER=#{cc}", "-DCMAKE_C_FLAGS='-fsanitize=undefined -fsanitize=address -fsanitize=leak'", *std_cmake_args
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, "-DCMAKE_C_COMPILER=#{cc}", "-DCMAKE_BUILD_TYPE=Debug", "-DCMAKE_C_FLAGS='-fsanitize=undefined -fsanitize=address -fsanitize=leak'"
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
Expand Down
2 changes: 1 addition & 1 deletion src/upgrade-self.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static int ppkg_upgrade_tar_filename(char buf[], const size_t bufSize, const cha
osVersMajor = 14;
}

ret = snprintf(buf, bufSize, "ppkg-%s-%s-%s.0-%s.tar.xz", latestVersion, osType, osVersMajor, osArch);
ret = snprintf(buf, bufSize, "ppkg-%s-%s-%d.0-%s.tar.xz", latestVersion, osType, osVersMajor, osArch);
#elif defined (__DragonFly__)
ret = snprintf(buf, bufSize, "ppkg-%s-%s-%s-%s.tar.xz", latestVersion, osType, osVers, osArch);
#elif defined (__FreeBSD__)
Expand Down
2 changes: 1 addition & 1 deletion src/uppm-formula-repo-sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static int uppm_formula_repo_url_of_official_core(char buf[], const size_t bufSi
}

if (osVers[i] == '.') {
osVers[i] == '\0';
osVers[i] = '\0';
osVersMajor = atoi(osVers);
break;
}
Expand Down

0 comments on commit d3697c2

Please sign in to comment.