domd5() buffer signedness fixes.
This commit is contained in:
parent
40e8f62678
commit
f0a178f128
|
@ -1297,7 +1297,7 @@ static void genCpioListAndHeader(/*@partial@*/ FileList fl,
|
|||
|
||||
buf[0] = '\0';
|
||||
if (S_ISREG(flp->fl_mode))
|
||||
(void) domd5(flp->diskURL, buf, 1, NULL);
|
||||
(void) domd5(flp->diskURL, (unsigned char *)buf, 1, NULL);
|
||||
s = buf;
|
||||
(void) headerAddOrAppendEntry(h, RPMTAG_FILEMD5S, RPM_STRING_ARRAY_TYPE,
|
||||
&s, 1);
|
||||
|
|
|
@ -645,7 +645,7 @@ assert(otherFi != NULL);
|
|||
}
|
||||
|
||||
/* Here is a pre-existing modified config file that needs saving. */
|
||||
{ char md5sum[50];
|
||||
{ unsigned char md5sum[50];
|
||||
const unsigned char * MD5 = rpmfiMD5(fi);
|
||||
if (!domd5(fn, md5sum, 0, NULL) && memcmp(MD5, md5sum, 16)) {
|
||||
fi->actions[i] = FA_BACKUP;
|
||||
|
|
Loading…
Reference in New Issue