Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
LiEnby authored Jun 4, 2023
1 parent d262857 commit c55765d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions c_version/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#endif
#else
#ifndef PATH_MAX
#define PATH_MAX (32777)
#define PATH_MAX (0x7FFF)
#endif
#endif

Expand Down Expand Up @@ -390,9 +390,9 @@ int main(int argc, char** argv)
char psse_list[PATH_MAX];
char rif_file[PATH_MAX];

snprintf(application_folder, sizeof(application_folder), "%s\\RO\\Application", psm_folder);
snprintf(psse_list, sizeof(psse_list), "%s\\psse.list", application_folder);
snprintf(rif_file, sizeof(rif_file), "%s\\RO\\License\\FAKE.rif", psm_folder);
snprintf(application_folder, PATH_MAX-1, "%s\\RO\\Application", psm_folder);
snprintf(psse_list, PATH_MAX-1, "%s\\psse.list", application_folder);
snprintf(rif_file, PATH_MAX-1, "%s\\RO\\License\\FAKE.rif", psm_folder);

fix_paths(application_folder);
fix_paths(psse_list);
Expand All @@ -403,7 +403,7 @@ int main(int argc, char** argv)
return -1;
}
#ifdef DEBUG
print_buffer("Title Key", title_key, sizeof(title_key));
print_buffer("[*] Title Key", title_key, sizeof(title_key));
#endif


Expand Down

0 comments on commit c55765d

Please sign in to comment.