Skip to content

Commit

Permalink
Should fix #154.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamharrison committed Jan 10, 2025
1 parent ecaeddb commit 7896dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ static int mkdirp(lua_State* L, char* path, int len) {
// Assumes sizeof(dst) >= sizeof(src)
static const char* strip_to_tar(char* dst, const char* src) {
int len = strlen(src);
if (strstr(src, ".tar") && (strstr(src, ".gz") || strstr(src, ".xz"))) {
if (strstr(src, ".tar") || strstr(src, ".gz") || strstr(src, ".xz")) {
strncpy(dst, src, imin(len - 3, PATH_MAX));
len -= 3;
} else if (strstr(src, ".tgz") || strstr(src, ".txz")) {
Expand Down

0 comments on commit 7896dcf

Please sign in to comment.