Changeset 61855eb in OpenSC
- Timestamp:
- 06/11/11 07:33:30 (12 months ago)
- Branches:
- master, staging
- Children:
- 1c437c04
- Parents:
- 291ec6b
- git-author:
- Peter Marschall <peter@…> (06/02/11 14:19:38)
- git-committer:
- Peter Marschall <peter@…> (06/11/11 07:33:30)
- File:
-
- 1 edited
-
src/tools/opensc-explorer.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tools/opensc-explorer.c
r291ec6b r61855eb 1100 1100 sc_path_t path; 1101 1101 sc_file_t *file; 1102 char *in_str;1103 1102 1104 1103 if (argc != 3) … … 1108 1107 offs = strtol(argv[1],NULL,10); 1109 1108 1110 in_str = argv[2]; 1111 printf("in: %i; %s\n", offs, in_str); 1112 1113 r = parse_string_or_hexdata(in_str, buf, &buflen); 1109 printf("in: %i; %s\n", offs, argv[2]); 1110 1111 r = parse_string_or_hexdata(argv[2], buf, &buflen); 1114 1112 if (r < 0) { 1115 1113 printf("unable to parse data\n"); … … 1152 1150 sc_path_t path; 1153 1151 sc_file_t *file; 1154 char *in_str;1155 1152 1156 1153 if (argc != 4) … … 1161 1158 offs = strtol(argv[2],NULL,10); 1162 1159 1163 in_str = argv[3]; 1164 printf("in: %i; %i; %s\n", rec, offs, in_str); 1160 printf("in: %i; %i; %s\n", rec, offs, argv[3]); 1165 1161 1166 1162 r = sc_select_file(card, &path, &file); … … 1185 1181 1186 1182 buflen = sizeof(buf) - offs; 1187 i = parse_string_or_hexdata( in_str, buf + offs, &buflen);1183 i = parse_string_or_hexdata(argv[3], buf + offs, &buflen); 1188 1184 if (!i) { 1189 1185 printf("unable to parse data\n");
Note: See TracChangeset
for help on using the changeset viewer.
