aboutsummaryrefslogtreecommitdiffstats
path: root/gg_map/gg_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'gg_map/gg_map.c')
-rw-r--r--gg_map/gg_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gg_map/gg_map.c b/gg_map/gg_map.c
index a73042f..73f125e 100644
--- a/gg_map/gg_map.c
+++ b/gg_map/gg_map.c
@@ -373,8 +373,8 @@ elm_main(int argc, char **argv)
}
}
switch (argc - optind) {
- case 2: gg_serv_port = atoi(argv[3]);
- case 1: strncpy(gg_serv_ip, argv[2], sizeof(gg_serv_ip));
+ case 2: gg_serv_port = atoi(argv[2]);
+ case 1: strncpy(gg_serv_ip, argv[1], sizeof(gg_serv_ip));
case 0:
break;
default: