Hi,

I think that this function needs to be reviewed

static void android_server_BatteryService_update(JNIEnv* env, jobject obj)



 196     if (readFromFile(BATTERY_TECHNOLOGY_PATH, buf, SIZE) > 0)

 197         env->SetObjectField(obj, gFieldIds.mBatteryTechnology, 
env->NewStringUTF(buf));

What happen here if the buf contains a garbage because the battery is 
not present?

Michael


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to