summaryrefslogtreecommitdiffstats
path: root/onetimebluh.c
diff options
context:
space:
mode:
Diffstat (limited to 'onetimebluh.c')
-rw-r--r--onetimebluh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/onetimebluh.c b/onetimebluh.c
index b8f3f8c..83cf93a 100644
--- a/onetimebluh.c
+++ b/onetimebluh.c
@@ -24,6 +24,7 @@ int main(int argc, char* argv[]) {
void xor(int ac, char* av[]) {
int opt;
+ char* defname = "critt";
int defout = 0;
char* output;
while ((opt = getopt(ac, av, "o:")) != -1) {
@@ -40,7 +41,7 @@ void xor(int ac, char* av[]) {
if (defout == 0) {
printf("WARNING no command specified using default value critt \n");
- output = "critt";
+ output = defname;
}
FILE* mess_uno = fopen(av[2], "r");
FILE* mess_due = fopen(av[3], "r");