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.h b/adb/adb.h index b958682..a148019 100644 --- a/adb/adb.h +++ b/adb/adb.h
@@ -236,7 +236,7 @@ void handle_packet(apacket *p, atransport *t); void send_packet(apacket *p, atransport *t); -void get_my_path(char s[PATH_MAX]); +void get_my_path(char *s, size_t maxLen); int launch_server(); int adb_main(int is_daemon);