mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix new word list
This commit is contained in:
parent
8502de4b1a
commit
c375e131ed
@ -68,6 +68,18 @@ int Mnemonic::init(void(*fill_words_func)(unsigned char*), unsigned int original
|
||||
word_end = i;
|
||||
|
||||
u32 word_size = word_end - word_begin;
|
||||
if (word_size < 3) {
|
||||
printf("[%s] ERROR! word is smaller than 3, word size: %d, index: %d \n",
|
||||
__FUNCTION__, word_size, cursor
|
||||
);
|
||||
char acBuffer[22]; memset(acBuffer, 0, 22);
|
||||
int _start = word_end - 10;
|
||||
if (_start < 0) {
|
||||
_start = 0;
|
||||
}
|
||||
memcpy(acBuffer, &uncompressed_buffer[_start], 20);
|
||||
printf("word_end: %d, word_begin: %d, part: %s\n", word_end, word_begin, acBuffer);
|
||||
}
|
||||
if (word_end < word_begin) {
|
||||
//printf("%c %c %c\n", uncompressed_buffer[i - 1], uncompressed_buffer[i], uncompressed_buffer[i + 1]);
|
||||
//printf("%s\n", uncompressed_buffer);
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -161,7 +161,7 @@ namespace ServerConfig {
|
||||
}
|
||||
break;
|
||||
case MNEMONIC_GRADIDO_BOOK_GERMAN_RANDOM_ORDER_FIXED_CASES:
|
||||
iResult = g_Mnemonic_WordLists[i].init(populate_mnemonic_german, g_mnemonic_german2_original_size, g_mnemonic_german2_compressed_size);
|
||||
iResult = g_Mnemonic_WordLists[i].init(populate_mnemonic_german2, g_mnemonic_german2_original_size, g_mnemonic_german2_compressed_size);
|
||||
if (iResult) {
|
||||
printf("[%s] error init german mnemonic set 2, error nr: %d\n", __FUNCTION__, iResult);
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user