Fix bebytes2ushort function, reported by Roland Schwarz.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3999 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
9406ce2885
commit
f1471e4a0c
|
@ -134,7 +134,7 @@ unsigned long bebytes2ulong(const u8 *buf)
|
|||
|
||||
unsigned short bebytes2ushort(const u8 *buf)
|
||||
{
|
||||
return (unsigned short) (buf[0] << 24 | buf[1] << 16);
|
||||
return (unsigned short) (buf[0] << 8 | buf[1]);
|
||||
}
|
||||
|
||||
int sc_format_oid(struct sc_object_id *oid, const char *in)
|
||||
|
|
Loading…
Reference in New Issue