Bug fixes related to sparc 4-byte boundary alignment.
This commit is contained in:
parent
c6ff9064d0
commit
04fd4a2756
|
@ -260,10 +260,10 @@ DWORD convertHexCSVToHex(char *str, BYTE *buf, ULONG bufLen)
|
|||
while (strPos < strLen)
|
||||
{
|
||||
char xbuf[3];
|
||||
char wc;
|
||||
UINT wc;
|
||||
|
||||
memcpy(xbuf,s,2); xbuf[3]='\0';
|
||||
sscanf(xbuf,"%02x",(UINT*)&wc);
|
||||
memcpy(xbuf,s,2); xbuf[2]='\0';
|
||||
sscanf(xbuf,"%02x",&wc);
|
||||
if (byteCount < bufLen)
|
||||
*b++ =(unsigned char)wc;
|
||||
|
||||
|
|
Loading…
Reference in New Issue