diff options
Diffstat (limited to 'camera/EmulatedCamera.cpp')
-rwxr-xr-x | camera/EmulatedCamera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/EmulatedCamera.cpp b/camera/EmulatedCamera.cpp index 28aede1..096c5b2 100755 --- a/camera/EmulatedCamera.cpp +++ b/camera/EmulatedCamera.cpp @@ -1016,7 +1016,7 @@ static void PrintParamDiff(const CameraParameters& current, /* Divided with ';' */ const char* next = strchr(wrk, ';'); while (next != NULL) { - snprintf(tmp, sizeof(tmp), "%.*s", next-wrk, wrk); + snprintf(tmp, sizeof(tmp), "%.*s", (int)(intptr_t)(next-wrk), wrk); /* in the form key=value */ char* val = strchr(tmp, '='); if (val != NULL) { |