diff options
| author | 2010-04-07 15:15:06 +0200 | |
|---|---|---|
| committer | 2010-04-07 15:15:06 +0200 | |
| commit | 25103d3343074b61c6e2311324ccc92fc07e9105 (patch) | |
| tree | cabd9eaf3310b67897cc1cc93e6bb34dec77e988 /src | |
| parent | 5acdb60f197b192f475373a710077c62b6d6f4f3 (diff) | |
| download | ideviceinstaller-25103d3343074b61c6e2311324ccc92fc07e9105.tar.gz ideviceinstaller-25103d3343074b61c6e2311324ccc92fc07e9105.tar.bz2 | |
Fix long arguments segfaulting due to wrong getopt struct setup
Diffstat (limited to 'src')
| -rw-r--r-- | src/ideviceinstaller.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index c8bc239..6187c97 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c | |||
| @@ -228,16 +228,16 @@ static void parse_opts(int argc, char **argv) | |||
| 228 | { | 228 | { |
| 229 | static struct option longopts[] = { | 229 | static struct option longopts[] = { |
| 230 | {"help", 0, NULL, 'h'}, | 230 | {"help", 0, NULL, 'h'}, |
| 231 | {"uuid", 0, NULL, 'U'}, | 231 | {"uuid", 1, NULL, 'U'}, |
| 232 | {"list-apps", 0, NULL, 'l'}, | 232 | {"list-apps", 0, NULL, 'l'}, |
| 233 | {"install", 0, NULL, 'i'}, | 233 | {"install", 1, NULL, 'i'}, |
| 234 | {"uninstall", 0, NULL, 'u'}, | 234 | {"uninstall", 1, NULL, 'u'}, |
| 235 | {"upgrade", 0, NULL, 'g'}, | 235 | {"upgrade", 1, NULL, 'g'}, |
| 236 | {"list-archives", 0, NULL, 'L'}, | 236 | {"list-archives", 0, NULL, 'L'}, |
| 237 | {"archive", 0, NULL, 'a'}, | 237 | {"archive", 1, NULL, 'a'}, |
| 238 | {"restore", 0, NULL, 'r'}, | 238 | {"restore", 1, NULL, 'r'}, |
| 239 | {"remove-archive", 0, NULL, 'R'}, | 239 | {"remove-archive", 1, NULL, 'R'}, |
| 240 | {"options", 0, NULL, 'o'}, | 240 | {"options", 1, NULL, 'o'}, |
| 241 | {"debug", 0, NULL, 'D'}, | 241 | {"debug", 0, NULL, 'D'}, |
| 242 | {NULL, 0, NULL, 0} | 242 | {NULL, 0, NULL, 0} |
| 243 | }; | 243 | }; |
