aboutsummaryrefslogtreecommitdiffstats
path: root/android/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'android/console.c')
-rw-r--r--android/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/console.c b/android/console.c
index ed02db5..07a59d2 100644
--- a/android/console.c
+++ b/android/console.c
@@ -1867,7 +1867,7 @@ do_event_send( ControlClient client, char* args )
if (q == p)
break;
- snprintf(temp, sizeof temp, "%.*s", q-p, p);
+ snprintf(temp, sizeof temp, "%.*s", (int)(intptr_t)(q-p), p);
ret = android_event_from_str( temp, &type, &code, &value );
if (ret < 0) {
if (ret == -1) {