|
Lines 1-29
Link Here
|
| 1 |
--- src/rndpassw.c.orig 2014-03-02 18:22:27.000000000 -0500 |
|
|
| 2 |
+++ src/rndpassw.c 2014-08-30 13:24:58.742060993 -0400 |
| 3 |
@@ -24,7 +24,7 @@ |
| 4 |
|
| 5 |
int main(int argc, char **argv) |
| 6 |
{ |
| 7 |
- flags_t flags = { 0 }; |
| 8 |
+ flags_t flags = { 0, 0, 0, 0 }; |
| 9 |
int passlen = -1, passcnt = -1; |
| 10 |
int opt, mixlen = 0, entlen, fd; |
| 11 |
unsigned i, y, baselen = 0; |
| 12 |
@@ -133,7 +133,7 @@ |
| 13 |
|
| 14 |
entoff = entbuf = malloc(entlen); |
| 15 |
if(entbuf == NULL) { |
| 16 |
- fprintf(stderr, "Could not allocate %zd bytes\n", entlen); |
| 17 |
+ fprintf(stderr, "Could not allocate %zd bytes\n", (size_t)entlen); |
| 18 |
return (1); |
| 19 |
} |
| 20 |
|
| 21 |
@@ -148,7 +148,7 @@ |
| 22 |
/* create and fill dictionary */ |
| 23 |
mixbuf = malloc(mixlen); |
| 24 |
if(mixbuf == NULL) { |
| 25 |
- fprintf(stderr, "Could not allocate %zd bytes of memory\n", mixlen); |
| 26 |
+ fprintf(stderr, "Could not allocate %zd bytes of memory\n", (size_t)mixlen); |
| 27 |
return (1); |
| 28 |
} |
| 29 |
|