commit | 3166410a82f43d39201be98a8d35c51baa86cb53 | [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 | 484564e35ef296e3e2a029d5710bee7c672f1129 | |
parent | 74d7ff8cfd490852d3df1c4b9d8a21beed619caa [diff] [blame] |
Make get_my_path() safer Adds maxLen parameter to get_my_path(). Some small cosmetic fixes.
diff --git a/adb/adb.c b/adb/adb.c index c1646b8..7df3f7b 100644 --- a/adb/adb.c +++ b/adb/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;