comparison src/main.c @ 58:fcd4b9fe957b

[gui.c]: show version and type in a box
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Thu, 21 Jul 2022 00:46:18 -0400
parents 652343b56a60
children 8f90d5addda9
comparison
equal deleted inserted replaced
57:01c605e78f48 58:fcd4b9fe957b
152 outfile = fopen(args.output, "r+b"); 152 outfile = fopen(args.output, "r+b");
153 if (outfile == NULL) { 153 if (outfile == NULL) {
154 fprintf(stderr, "Failed to open file %s! Do you have write permissions?", args.output); 154 fprintf(stderr, "Failed to open file %s! Do you have write permissions?", args.output);
155 return 1; 155 return 1;
156 } 156 }
157 set_data(magic, args.version, outfile); 157 set_data(&magic, args.version, outfile);
158 fclose(outfile); 158 fclose(outfile);
159 return 0; 159 return 0;
160 } 160 }