FM: kitkat bringup changes vendor-qcom-opensource-fm
Inorder to get a property we must use some fixed memory
length memory block.
Change-Id: Id3455e85435f6beb91adee959ff25fd105ed9aa8
diff --git a/jni/android_hardware_fm.cpp b/jni/android_hardware_fm.cpp
index 7068b83..4dcb51a 100644
--- a/jni/android_hardware_fm.cpp
+++ b/jni/android_hardware_fm.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -415,7 +415,7 @@
{
char value[PROPERTY_VALUE_MAX] = {'\0'};
int init_success = 0,i;
- char notch[20] = {0x00};
+ char notch[PROPERTY_VALUE_MAX] = {0x00};
struct v4l2_control control;
int err;
/*Enable/Disable the WAN avoidance*/