diff options
Diffstat (limited to 'src/pdumper.c')
| -rw-r--r-- | src/pdumper.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pdumper.c b/src/pdumper.c index 8b630d221b1..7d29d3c0c83 100644 --- a/src/pdumper.c +++ b/src/pdumper.c | |||
| @@ -4101,7 +4101,8 @@ types. */) | |||
| 4101 | ctx->header.magic[0] = '!'; /* Note that dump is incomplete. */ | 4101 | ctx->header.magic[0] = '!'; /* Note that dump is incomplete. */ |
| 4102 | 4102 | ||
| 4103 | verify (sizeof (fingerprint) == sizeof (ctx->header.fingerprint)); | 4103 | verify (sizeof (fingerprint) == sizeof (ctx->header.fingerprint)); |
| 4104 | memcpy (ctx->header.fingerprint, fingerprint, sizeof (fingerprint)); | 4104 | memcpy (ctx->header.fingerprint, (unsigned char *) fingerprint, |
| 4105 | sizeof (fingerprint)); | ||
| 4105 | 4106 | ||
| 4106 | const dump_off header_start = ctx->offset; | 4107 | const dump_off header_start = ctx->offset; |
| 4107 | dump_fingerprint ("dumping fingerprint", ctx->header.fingerprint); | 4108 | dump_fingerprint ("dumping fingerprint", ctx->header.fingerprint); |
| @@ -5359,9 +5360,10 @@ pdumper_load (const char *dump_filename) | |||
| 5359 | 5360 | ||
| 5360 | err = PDUMPER_LOAD_VERSION_MISMATCH; | 5361 | err = PDUMPER_LOAD_VERSION_MISMATCH; |
| 5361 | verify (sizeof (header->fingerprint) == sizeof (fingerprint)); | 5362 | verify (sizeof (header->fingerprint) == sizeof (fingerprint)); |
| 5362 | if (memcmp (header->fingerprint, fingerprint, sizeof (fingerprint)) != 0) | 5363 | if (memcmp (header->fingerprint, (unsigned char *) fingerprint, |
| 5364 | sizeof (fingerprint)) != 0) | ||
| 5363 | { | 5365 | { |
| 5364 | dump_fingerprint ("desired fingerprint", fingerprint); | 5366 | dump_fingerprint ("desired fingerprint", (unsigned char *) fingerprint); |
| 5365 | dump_fingerprint ("found fingerprint", header->fingerprint); | 5367 | dump_fingerprint ("found fingerprint", header->fingerprint); |
| 5366 | goto out; | 5368 | goto out; |
| 5367 | } | 5369 | } |