]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/dnssd.c
Fix build errors on Fedora.
[thirdparty/cups.git] / backend / dnssd.c
index fad831f7fdeb4376289459ba5ece98bb1ff35845..44084e3ed8b56b02b8d30a9f206f1ac1bfe1ffbf 100644 (file)
@@ -1107,7 +1107,7 @@ query_callback(
       data ++;
 
       if (data < datanext)
-       memcpy(value, data, datanext - data);
+       memcpy(value, data, (size_t)(datanext - data));
       value[datanext - data] = '\0';
 
       fprintf(stderr, "DEBUG2: query_callback: \"%s=%s\".\n",
@@ -1198,7 +1198,7 @@ query_callback(
       * Assume the first word is the make...
       */
 
-      memcpy(make_and_model, model, ptr - model);
+      memcpy(make_and_model, model, (size_t)(ptr - model));
       make_and_model[ptr - model] = '\0';
 
       snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s",