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:
aj 2010-02-05 06:20:45 +00:00
parent 9406ce2885
commit f1471e4a0c
1 changed files with 1 additions and 1 deletions

View File

@ -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)