mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-ggsn.git
synced 2025-10-23 08:22:07 +00:00
Fixed APN bug
This commit is contained in:
@@ -439,9 +439,9 @@ int process_options(int argc, char **argv) {
|
||||
printf("Invalid APN\n");
|
||||
return -1;
|
||||
}
|
||||
options.apn.l = strlen(args_info.apn_arg) + 1;
|
||||
options.apn.v[0] = (char) strlen(args_info.apn_arg);
|
||||
strncpy(&options.apn.v[1], args_info.apn_arg, sizeof(options.apn.v)-1);
|
||||
options.apn.l = strlen(args_info.apn_arg);
|
||||
strncpy(options.apn.v, args_info.apn_arg, sizeof(options.apn.v));
|
||||
options.apn.v[sizeof(options.apn.v)-1] = 0;
|
||||
printf("Using APN: %s\n", args_info.apn_arg);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user