Fix compile issue after extend PROP_VALUE_MAX

This commit is contained in:
August 2018-08-16 00:30:51 +08:00
parent 7bf61501b6
commit 739b6b327f
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ extern int get_property(const char *key,
const char *default_value); const char *default_value);
// Size constants. Should be checked to be equal to the cutils requirements. // Size constants. Should be checked to be equal to the cutils requirements.
constexpr size_t kPropertyKeyMax = 32u; constexpr size_t kPropertyKeyMax = 32u;
constexpr size_t kPropertyValueMax = 92u; constexpr size_t kPropertyValueMax = 149u;
// Compute the output path for dex2oat. // Compute the output path for dex2oat.
extern bool calculate_oat_file_path(char path[PKG_PATH_MAX], extern bool calculate_oat_file_path(char path[PKG_PATH_MAX],

View file

@ -2544,7 +2544,7 @@ void CameraHardware::makeFDOrientionArray()
void CameraHardware::getCurrentOriention(int * oriention, int compensation,bool reverse,int re_direction) void CameraHardware::getCurrentOriention(int * oriention, int compensation,bool reverse,int re_direction)
{ {
char rota[100]; char rota[PROPERTY_VALUE_MAX];
property_get("sys.current.rotation",rota,"Unknow"); property_get("sys.current.rotation",rota,"Unknow");
mOriention = atoi(rota); mOriention = atoi(rota);
//LOGV("FDOriention: %d",mFDOriention[mOriention]); //LOGV("FDOriention: %d",mFDOriention[mOriention]);