{
ULONG ul1, ul2;
ULONG uc;
- if (sscanf(start,"%XI%XK%X",&ul1,&ul2,&uc) == 3)
+ if (sscanf(start,"%lXI%lXK%lX",&ul1,&ul2,&uc) == 3)
{
translist[((ULLONG) ul1) | ((ULLONG)ul2) << 32]=(UCHAR)uc;
}
int length=21*translist.size() +1;
char *output=new char[length];
char *current=output;
- int pos=0;
RemoteTranslationList::const_iterator it;
for (it = translist.begin(); it != translist.end(); it++)
{
- current+=sprintf(current,"H%08XI%08XK%02X",
+ current+=sprintf(current,"H%08lXI%08lXK%02X",
(ULONG)it->first ,(ULONG) (it->first >> 32), it->second);
}
return output;
else
{
dest=new char[20];
- sprintf(dest,"C:%X",(ULONG)hcw);
+ sprintf(dest,"C:%lX",(ULONG)hcw);
}
return dest;
}