summarylogtreecommitdiffstats
path: root/typecast-pointer.patch
blob: 7a4ba14705176b32bcad417db845650332604868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
*** main.c	2015-12-22 23:20:17.238017267 -0500
--- main.c~	2015-12-22 23:18:44.111994162 -0500
***************
*** 41,47 ****
  {
  
      // insert code here...
!     char xbuf[XBSZ], *zbuf = malloc(ZBSZ);
      xar_t x;
      err(argc < 2, "No file specified");
      err(!(x = xar_open(argv[1], READ)), "XAR open failure");
--- 41,47 ----
  {
  
      // insert code here...
!     char xbuf[XBSZ], *zbuf = (char*) malloc(ZBSZ);
      xar_t x;
      err(argc < 2, "No file specified");
      err(!(x = xar_open(argv[1], READ)), "XAR open failure");
***************
*** 90,94 ****
      lzma_end(&zs);
      xar_close(x);
      return 0;
! }
! 
--- 90,93 ----
      lzma_end(&zs);
      xar_close(x);
      return 0;
! }