FreeCalypso > hg > fc-pcsc-tools
comparison simtool/smsp_restore.c @ 41:8cb269f5a902
fc-simtool smsp-restore: forgot to set parameter indicator bits
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Fri, 12 Feb 2021 22:10:32 +0000 |
| parents | 2467b7acad1f |
| children | 9c10afbb745a |
comparison
equal
deleted
inserted
replaced
| 40:4c240a37e7c4 | 41:8cb269f5a902 |
|---|---|
| 146 "%s line %d: PID= parameter invalid syntax\n", | 146 "%s line %d: PID= parameter invalid syntax\n", |
| 147 filename_for_errs, lineno_for_errs); | 147 filename_for_errs, lineno_for_errs); |
| 148 return(-1); | 148 return(-1); |
| 149 } | 149 } |
| 150 fixp[25] = strtoul(cp, 0, 0); | 150 fixp[25] = strtoul(cp, 0, 0); |
| 151 fixp[0] &= 0xFB; | |
| 151 while (*cp && !isspace(*cp)) | 152 while (*cp && !isspace(*cp)) |
| 152 cp++; | 153 cp++; |
| 153 while (isspace(*cp)) | 154 while (isspace(*cp)) |
| 154 cp++; | 155 cp++; |
| 155 } | 156 } |
| 160 "%s line %d: DCS= parameter invalid syntax\n", | 161 "%s line %d: DCS= parameter invalid syntax\n", |
| 161 filename_for_errs, lineno_for_errs); | 162 filename_for_errs, lineno_for_errs); |
| 162 return(-1); | 163 return(-1); |
| 163 } | 164 } |
| 164 fixp[26] = strtoul(cp, 0, 0); | 165 fixp[26] = strtoul(cp, 0, 0); |
| 166 fixp[0] &= 0xF7; | |
| 165 while (*cp && !isspace(*cp)) | 167 while (*cp && !isspace(*cp)) |
| 166 cp++; | 168 cp++; |
| 167 while (isspace(*cp)) | 169 while (isspace(*cp)) |
| 168 cp++; | 170 cp++; |
| 169 } | 171 } |
| 174 "%s line %d: VP= parameter invalid syntax\n", | 176 "%s line %d: VP= parameter invalid syntax\n", |
| 175 filename_for_errs, lineno_for_errs); | 177 filename_for_errs, lineno_for_errs); |
| 176 return(-1); | 178 return(-1); |
| 177 } | 179 } |
| 178 fixp[27] = strtoul(cp, 0, 0); | 180 fixp[27] = strtoul(cp, 0, 0); |
| 181 fixp[0] &= 0xEF; | |
| 179 while (*cp && !isspace(*cp)) | 182 while (*cp && !isspace(*cp)) |
| 180 cp++; | 183 cp++; |
| 181 while (isspace(*cp)) | 184 while (isspace(*cp)) |
| 182 cp++; | 185 cp++; |
| 183 } | 186 } |
