fix serial number

This commit is contained in:
NIIBE Yutaka
2013-12-12 10:55:25 +09:00
parent 2ff20397ca
commit f79ee5c4fd
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2013-12-12 Niibe Yutaka <gniibe@fsij.org>
* src/openpgp-do.c (do_openpgpcard_aid): Coerce to volatile to
force memory access at run time.
2013-12-11 Niibe Yutaka <gniibe@fsij.org>
* regnual/sys.c (entry): Fix relocation calculation.
@@ -33,7 +38,7 @@
2013-11-26 Niibe Yutaka <gniibe@fsij.org>
* src/pin-dial.c: Remove.
* src/configure: Remove pin-dial suppot.
* src/configure: Remove pin-dial support.
2013-11-25 Niibe Yutaka <gniibe@fsij.org>

View File

@@ -464,7 +464,8 @@ const uint8_t openpgpcard_aid[] = {
static int
do_openpgpcard_aid (uint16_t tag, int with_tag)
{
uint16_t vid = (openpgpcard_aid[8] << 8) | openpgpcard_aid[9];
const volatile uint8_t *p = openpgpcard_aid;
uint16_t vid = (p[8] << 8) | p[9];
if (with_tag)
{