Skip to content

Commit

Permalink
Changed mode
Browse files Browse the repository at this point in the history
  • Loading branch information
uhlin committed Jan 25, 2025
1 parent 5d48a3a commit 689dc2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/ftp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ ftp_data_conn::send_file(void)
return;
if (this->full_path == nullptr || this->path == nullptr)
return;
if ((this->fileptr = xfopen(this->full_path, "r")) == nullptr) {
if ((this->fileptr = xfopen(this->full_path, "rb")) == nullptr) {
printtext_print("err", "open failed: %s", this->full_path);
return;
}
Expand Down

0 comments on commit 689dc2d

Please sign in to comment.