Skip to content

Commit

Permalink
misc fixes; now compiles on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
codeshaunted committed Sep 7, 2021
1 parent bfabcff commit 9657fc3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/monke/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// limitations under the License.

#include <iostream>
#include <cstring>

#include "pack.hh"
#include "config.hh"
Expand Down Expand Up @@ -43,7 +44,7 @@ int main(int argc, char* argv[]) {

monke::Pack::unpack(argv[2], argv[3], argv[4]);

std::cout << "Unpacked '" << argv[2] << "' with password '" << argv[3] << "' to '" << argv[4] << std::endl;
std::cout << "Unpacked '" << argv[2] << "' with password '" << argv[4] << "' to '" << argv[3] << "'." << std::endl;
}
else if (!strcmp(argv[1], "pack") || !strcmp(argv[1], "p")) {
if (argc != 5) {
Expand All @@ -53,7 +54,7 @@ int main(int argc, char* argv[]) {

monke::Pack::pack(argv[2], argv[3], argv[4]);

std::cout << "Packed '" << argv[2] << "' with password '" << argv[3] << "' to '" << argv[4] << std::endl;
std::cout << "Packed '" << argv[2] << "' with password '" << argv[4] << "' to '" << argv[3] << "'." << std::endl;
}
else {
help();
Expand Down

0 comments on commit 9657fc3

Please sign in to comment.