]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/snmp.c
Fix build errors on Fedora.
[thirdparty/cups.git] / cups / snmp.c
index a291e8a829879901025d7158a3e63ee961cd6500..4c62f959fa0531f20dcd4bb7f5e705b97488b344 100644 (file)
@@ -280,7 +280,7 @@ _cupsSNMPOIDToString(const int *src,        /* I - OID */
   for (dstptr = dst, dstend = dstptr + dstsize - 1;
        *src >= 0 && dstptr < dstend;
        src ++, dstptr += strlen(dstptr))
-    snprintf(dstptr, dstend - dstptr + 1, ".%d", *src);
+    snprintf(dstptr, (size_t)(dstend - dstptr + 1), ".%d", *src);
 
   if (*src >= 0)
     return (NULL);