Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efafb775 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am c0ffba90: am 261bc704: Merge "convert jint to uint32_t."

* commit 'c0ffba90':
  convert jint to uint32_t.
parents 6f0c7b50 c0ffba90
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -71,8 +71,8 @@ static jint android_util_EventLog_writeEvent_String(JNIEnv* env, jobject clazz,
    // Don't throw NPE -- I feel like it's sort of mean for a logging function
    // to be all crashy if you pass in NULL -- but make the NULL value explicit.
    const char *str = value != NULL ? env->GetStringUTFChars(value, NULL) : "NULL";
    jint len = strlen(str);
    const int max = sizeof(buf) - sizeof(len) - 2;  // Type byte, final newline
    uint32_t len = strlen(str);
    size_t max = sizeof(buf) - sizeof(len) - 2;  // Type byte, final newline
    if (len > max) len = max;

    buf[0] = EVENT_TYPE_STRING;