Skip to content

Commit

Permalink
Fixed APN bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jjako committed Mar 14, 2005
1 parent acba8e6 commit 9f26b95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sgsnemu/sgsnemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);


Expand Down

0 comments on commit 9f26b95

Please sign in to comment.