summaryrefslogtreecommitdiff
path: root/backend/dnssd.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-02-14 20:09:01 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-02-14 20:09:01 +0000
commit076239869a921fff635f11ef9d459eea9a4d8b9f (patch)
tree488c4623be96516015caef72c68f393fcb7f4828 /backend/dnssd.c
parent02f3db8a515647960cda4e85bbc5cd52764a0625 (diff)
downloadcups-076239869a921fff635f11ef9d459eea9a4d8b9f.tar.gz
Fix build errors on Fedora.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11594 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'backend/dnssd.c')
-rw-r--r--backend/dnssd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/dnssd.c b/backend/dnssd.c
index fad831f7f..44084e3ed 100644
--- a/backend/dnssd.c
+++ b/backend/dnssd.c
@@ -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",