| commit | 857f17ad2f41e94f36e6d71a58176022e820f394 | [log] [tgz] |
|---|---|---|
| author | Alexey Tarasov <tarasov@dodologics.com> | Thu Oct 22 02:55:00 2009 +1100 |
| committer | Alexey Tarasov <tarasov@dodologics.com> | Thu Oct 22 02:55:00 2009 +1100 |
| tree | 3a884de437a825f313f7218114c2fba2cd4b1b30 | |
| parent | 5f2c4a180c59672c5cc2dc337547a4e6ad2e4e9d [diff] [blame] |
Make get_my_path() safer Adds maxLen parameter to get_my_path(). Some small cosmetic fixes.
diff --git a/adb.c b/adb.c index c1646b8..7df3f7b 100644 --- a/adb.c +++ b/adb.c
@@ -783,7 +783,7 @@ fprintf(stderr, "pipe failed in launch_server, errno: %d\n", errno); return -1; } - get_my_path(path); + get_my_path(path, PATH_MAX); pid_t pid = fork(); if(pid < 0) return -1;