diff --git a/src/dos/dos_keyboard_layout.cpp b/src/dos/dos_keyboard_layout.cpp index 85b5b4fa..47cf8f72 100644 --- a/src/dos/dos_keyboard_layout.cpp +++ b/src/dos/dos_keyboard_layout.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002-2007 The DOSBox Team + * Copyright (C) 2002-2008 The DOSBox Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,6 +16,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* $Id: dos_keyboard_layout.cpp,v 1.11 2008-01-17 18:53:18 c2woody Exp $ */ + #include "dosbox.h" #include "bios.h" #include "setup.h" @@ -140,7 +142,7 @@ void keyboard_layout::read_keyboard_file(Bit32s specific_layout) { this->read_keyboard_file(current_keyboard_file_name, specific_layout, dos.loaded_codepage); } -static Bit32u read_kcl_file(const char* kcl_file_name, const char* layout_id) { +static Bit32u read_kcl_file(const char* kcl_file_name, const char* layout_id, bool first_id_only) { FILE* tempfile = OpenDosboxFile(kcl_file_name); if (tempfile==0) return 0; @@ -163,7 +165,7 @@ static Bit32u read_kcl_file(const char* kcl_file_name, const char* layout_id) { Bit8u data_len=rbuf[2]; - char lng_codes[256]; + char lng_codes[258]; // get all language codes for this layout for (Bitu i=0; i