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)
|
while (strPos < strLen)
|
||||||
{
|
{
|
||||||
char xbuf[3];
|
char xbuf[3];
|
||||||
char wc;
|
UINT wc;
|
||||||
|
|
||||||
memcpy(xbuf,s,2); xbuf[3]='\0';
|
memcpy(xbuf,s,2); xbuf[2]='\0';
|
||||||
sscanf(xbuf,"%02x",(UINT*)&wc);
|
sscanf(xbuf,"%02x",&wc);
|
||||||
if (byteCount < bufLen)
|
if (byteCount < bufLen)
|
||||||
*b++ =(unsigned char)wc;
|
*b++ =(unsigned char)wc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue