Skip to content

Commit

Permalink
Update pbtheme.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Lighting committed Sep 5, 2015
1 parent 12afd03 commit 8dc6c91
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pbtheme.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ void pack(char *theme, const char *config)
unsigned char *data, *tdata, *header, *hpos;
unsigned long len, clen;
unsigned int *iheader;
size_t len_t;
int headersize, delta;

//open theme file for reading
Expand Down Expand Up @@ -155,9 +154,9 @@ void pack(char *theme, const char *config)
iheader = (unsigned int *) hpos;
iheader[1] = iheader[1] + delta;
hpos += 12;
len_t = strlen(hpos);
if(len_t != 0)
hpos += (((unsigned long)len_t / 4) + 1) * 4;
len = strlen((char *) hpos);
if(len != 0)
hpos += ((len / 4) + 1) * 4;
}

//create temp file
Expand Down

0 comments on commit 8dc6c91

Please sign in to comment.