|
Lines 24-30
Link Here
|
| 24 |
|
24 |
|
| 25 |
int main(int argc, char **argv) |
25 |
int main(int argc, char **argv) |
| 26 |
{ |
26 |
{ |
| 27 |
flags_t flags = { 0 }; |
27 |
flags_t flags = {0, 0, 0, 0}; |
| 28 |
int passlen = -1, passcnt = -1; |
28 |
int passlen = -1, passcnt = -1; |
| 29 |
int opt, mixlen = 0, entlen, fd; |
29 |
int opt, mixlen = 0, entlen, fd; |
| 30 |
unsigned i, y, baselen = 0; |
30 |
unsigned i, y, baselen = 0; |
|
Lines 133-139
Link Here
|
| 133 |
|
133 |
|
| 134 |
entoff = entbuf = malloc(entlen); |
134 |
entoff = entbuf = malloc(entlen); |
| 135 |
if(entbuf == NULL) { |
135 |
if(entbuf == NULL) { |
| 136 |
fprintf(stderr, "Could not allocate %zd bytes\n", entlen); |
136 |
fprintf(stderr, "Could not allocate %d bytes\n", entlen); |
| 137 |
return (1); |
137 |
return (1); |
| 138 |
} |
138 |
} |
| 139 |
|
139 |
|
|
Lines 148-154
Link Here
|
| 148 |
/* create and fill dictionary */ |
148 |
/* create and fill dictionary */ |
| 149 |
mixbuf = malloc(mixlen); |
149 |
mixbuf = malloc(mixlen); |
| 150 |
if(mixbuf == NULL) { |
150 |
if(mixbuf == NULL) { |
| 151 |
fprintf(stderr, "Could not allocate %zd bytes of memory\n", mixlen); |
151 |
fprintf(stderr, "Could not allocate %d bytes of memory\n", mixlen); |
| 152 |
return (1); |
152 |
return (1); |
| 153 |
} |
153 |
} |