summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2/evas_cs2_client.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-16 17:18:59 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-16 17:18:59 +0900
commita588851b8f80027fd30edd6059485e3b2915f7a8 (patch)
tree3463f9690348fc3ae55ed80b769eaa5ac1ae2d74 /src/lib/evas/cserve2/evas_cs2_client.c
parent4c970812f2613e6a97cd12f68b281860b7f42685 (diff)
fix clang nonnull complaint
Diffstat (limited to '')
-rw-r--r--src/lib/evas/cserve2/evas_cs2_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2_client.c b/src/lib/evas/cserve2/evas_cs2_client.c
index d2cb490398..c6f66ab6f5 100644
--- a/src/lib/evas/cserve2/evas_cs2_client.c
+++ b/src/lib/evas/cserve2/evas_cs2_client.c
@@ -1105,7 +1105,7 @@ _font_load_server_send(Font_Entry *fe, Message_Type type)
1105 msg->dpi = fe->dpi; 1105 msg->dpi = fe->dpi;
1106 1106
1107 buf = ((char *)msg) + sizeof(*msg); 1107 buf = ((char *)msg) + sizeof(*msg);
1108 memcpy(buf, fe->source, source_len); 1108 if (source_len > 0) memcpy(buf, fe->source, source_len);
1109 buf += source_len; 1109 buf += source_len;
1110 memcpy(buf, fe->name, path_len); 1110 memcpy(buf, fe->name, path_len);
1111 1111
@@ -1338,7 +1338,7 @@ _glyph_request_server_send(Font_Entry *fe, Font_Hint_Flags hints, Eina_Bool used
1338 msg->nglyphs = nglyphs; 1338 msg->nglyphs = nglyphs;
1339 1339
1340 buf = ((char *)msg) + sizeof(*msg); 1340 buf = ((char *)msg) + sizeof(*msg);
1341 memcpy(buf, fe->source, source_len); 1341 if (source_len > 0) memcpy(buf, fe->source, source_len);
1342 buf += source_len; 1342 buf += source_len;
1343 memcpy(buf, fe->name, name_len); 1343 memcpy(buf, fe->name, name_len);
1344 buf += name_len; 1344 buf += name_len;