bugfix for extended chars

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8642 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2004-08-25 13:49:12 +00:00
parent dd48c6dc23
commit 1eb6e72fdc
2 changed files with 1 additions and 2 deletions

View File

@ -285,7 +285,7 @@ Keymap::ComputeChars(const char *buffer, struct re_registers &regs, int i, int &
} else if (sscanf(buffer + regs.start[i], "0x%s", hexChars) > 0) {
length = strlen(hexChars) / 2;
for (uint32 j=0; j<length; j++)
sscanf(hexChars + 2*j, "%02x", (unsigned short *)current + j);
sscanf(hexChars + 2*j, "%02x", (uint8*)current + j);
}
fChars[offset] = length;
offset += length + 1;

View File

@ -55,7 +55,6 @@ int main(int argc, char **argv)
} else if (operation == 'l') {
Keymap keymap;
keymap.LoadSource(stdin);
keymap.SaveAsCurrent();
return 0;
}