summaryrefslogtreecommitdiff
path: root/android/system-emulator.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2018-05-24 15:45:59 +0200
committerMarcel Holtmann <marcel@holtmann.org>2018-05-24 15:45:59 +0200
commita81f701d3c060ed265dacd33b0b3b52095571d2f (patch)
tree56d6caf6cb4184bcb87358d894d2c3779ca0bab0 /android/system-emulator.c
parent806276fe54faf7438a6e22959019621c5cd8b3cd (diff)
downloadbluez-a81f701d3c060ed265dacd33b0b3b52095571d2f.tar.gz
android: Fix a few compiler warnings
Diffstat (limited to 'android/system-emulator.c')
-rw-r--r--android/system-emulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/system-emulator.c b/android/system-emulator.c
index 61fb4967e..1545dcea1 100644
--- a/android/system-emulator.c
+++ b/android/system-emulator.c
@@ -86,7 +86,7 @@ static void run_bluetoothd(char *prg_name)
static void ctl_start(void)
{
- char prg_name[PATH_MAX];
+ char prg_name[PATH_MAX + 11];
pid_t pid;
snprintf(prg_name, sizeof(prg_name), "%s/%s", exec_dir, "bluetoothd");
@@ -114,7 +114,7 @@ static void ctl_start(void)
static void snoop_start(void)
{
- char prg_name[PATH_MAX];
+ char prg_name[PATH_MAX + 17];
char *prg_argv[3];
char *prg_envp[1];
pid_t pid;