Procházet zdrojové kódy

Cosmetic change for encrypt/decrypt file

svn: 104
Bryan Drewery před 23 roky
rodič
revize
d22eba7ed2
1 změnil soubory, kde provedl 10 přidání a 1 odebrání
  1. 10 1
      src/misc.c

+ 10 - 1
src/misc.c

@@ -2290,15 +2290,19 @@ void EncryptFile(char *infile, char *outfile)
     f2 = fopen(outfile, "w");
     if (!f2)
       return;
+  } else {
+    printf("-----------------------------------TOP-----------------------------------\n");
   }
 
   while (fscanf(f,"%[^\n]\n",buf) != EOF) {
     if (std)
       printf("%s\n", cryptit(encrypt_string(netpass, buf)));
-//      printf("%s\n", buf);
     else
       lfprintf(f2, "%s\n", buf);
   }
+  if (std)
+    printf("-----------------------------------EOF-----------------------------------\n");
+
   fclose(f);
   if (f2)
     fclose(f2);
@@ -2318,6 +2322,8 @@ void DecryptFile(char *infile, char *outfile)
     f2 = fopen(outfile, "w");
     if (!f2)
       return;
+  } else {
+    printf("-----------------------------------TOP-----------------------------------\n");
   }
 
   while (fscanf(f,"%[^\n]\n",buf) != EOF) {
@@ -2328,6 +2334,9 @@ void DecryptFile(char *infile, char *outfile)
       printf("%s\n", temps);
     nfree(temps);
   }
+  if (std)
+    printf("-----------------------------------EOF-----------------------------------\n");
+
   fclose(f);
   if (f2)
     fclose(f2);