Fix 'string literal' warning for Android client
Under Android-4.4 this commit fixes the following warning:
[exec] jni/./fwknop/fwknop_client.c: In function 'Java_com_max2idea_android_fwknop_Fwknop_sendSPAPacket':
[exec] jni/./fwknop/fwknop_client.c:181:5: error: format not a string literal and no format arguments [-Werror=format-security]
[exec] cc1: some warnings being treated as errors
This commit is contained in:
parent
6cba5d2ec9
commit
8ed0d9d8d9
@ -178,7 +178,7 @@ cleanup2:
|
|||||||
/* Log and return a string of success or error message.
|
/* Log and return a string of success or error message.
|
||||||
* This can be enhanced semantically with codes.
|
* This can be enhanced semantically with codes.
|
||||||
*/
|
*/
|
||||||
LOGV(res_msg);
|
LOGV("%s", res_msg);
|
||||||
|
|
||||||
return (*env)->NewStringUTF(env, res_msg);
|
return (*env)->NewStringUTF(env, res_msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user