From 0d8a2edf6b5e0a8da60a6f926daaf494322e3553 Mon Sep 17 00:00:00 2001 From: Dmitry Chapyshev Date: Sat, 17 Sep 2016 12:18:28 +0000 Subject: [PATCH] [TXT2NLS] Write correct size for wide char table svn path=/trunk/; revision=72701 --- rosapps/applications/devutils/txt2nls/nls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rosapps/applications/devutils/txt2nls/nls.c b/rosapps/applications/devutils/txt2nls/nls.c index 550e04c0d8f..d2b75d095d4 100644 --- a/rosapps/applications/devutils/txt2nls/nls.c +++ b/rosapps/applications/devutils/txt2nls/nls.c @@ -213,7 +213,7 @@ nls_from_txt(const char *txt_file_path, const char *nls_file_path) } /* Write wide char table */ - if (fwrite(wc_table, 1, (65535 * header.MaximumCharacterSize), file) != (65535 * header.MaximumCharacterSize)) + if (fwrite(wc_table, 1, (65536 * header.MaximumCharacterSize), file) != (65536 * header.MaximumCharacterSize)) { printf("Unable to write NLS file.\n"); goto Cleanup;