Use correct type for strlen()
This commit is contained in:
parent
4ffee98a65
commit
af9518dce2
|
@ -1232,7 +1232,7 @@ expandMacro(MacroBuf mb)
|
|||
rc = 1;
|
||||
printbuf = rpmluaGetPrintBuffer(lua);
|
||||
if (printbuf) {
|
||||
int len = strlen(printbuf);
|
||||
size_t len = strlen(printbuf);
|
||||
if (len > mb->nb)
|
||||
len = mb->nb;
|
||||
memcpy(mb->t, printbuf, len);
|
||||
|
|
Loading…
Reference in New Issue