summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 0420767f9..744b831d7 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2624,7 +2624,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
if (!DragData) {
DragData = strdup(p);
} else {
- int l = strlen(DragData) + strlen(p) + 2;
+ int l = (int)strlen(DragData) + (int)strlen(p) + 2;
char *drag2 = (char*)malloc(l);
snprintf(drag2, l, "%s\n%s", DragData, p);
free(DragData);