SHARE
TWEET

Untitled

a guest Aug 14th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void file_compress(char *pcParm1,undefined4 uParm2)
  2.  
  3. {
  4.   size_t sVar1;
  5.   FILE *pFVar2;
  6.   int iVar3;
  7.   char acStack1020 [1020];
  8.  
  9.   sVar1 = strlen(pcParm1);
  10.   if (sVar1 + 3 < 0x3ff) {
  11.     fprintf(*(FILE **)(_impure_ptr + 0xc),"%s: filename too long\n",prog);
  12.                     /* WARNING: Subroutine does not return */
  13.     exit(1);
  14.   }
  15.   snprintf(acStack1020,0x400,"%s%s",pcParm1,&DAT_00023798);
  16.   pFVar2 = fopen(pcParm1,"rb");
  17.   if (pFVar2 != (FILE *)0x0) {
  18.     iVar3 = gzopen(acStack1020,uParm2);
  19.     if (iVar3 != 0) {
  20.       gz_compress(pFVar2,iVar3);
  21.       unlink(pcParm1);
  22.       return;
  23.     }
  24.     fprintf(*(FILE **)(_impure_ptr + 0xc),"%s: can\'t gzopen %s\n",prog,acStack1020);
  25.                     /* WARNING: Subroutine does not return */
  26.     exit(1);
  27.   }
  28.   perror(pcParm1);
  29.                     /* WARNING: Subroutine does not return */
  30.   exit(1);
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top