Skip to content

Commit

Permalink
bugfix rudimentaire
Browse files Browse the repository at this point in the history
  • Loading branch information
masse committed Jun 22, 2005
1 parent 1a304d5 commit 9a66f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/enc/enc_strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ int convert_termchar (const char *str, size_t len, flrn_char **res, size_t lb) {
return 1;
} else return 1;
} else if (rc==(size_t)(-3)) {
rc=UCGetUniFromUtf8String(NULL,ptr,strlen(ptr));
rc=UCGetUniFromUtf8String(NULL,ptr,len);
if ((int)rc==(-1)) return -1;
if ((int)rc==(-2)) return 0;
if (rc>lb) {
Expand Down
1 change: 1 addition & 0 deletions src/tty_keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ void Attend_touche(struct key_entry *ke) {
unsigned char entree[10];
size_t entree_len=0;

memset(entree,0,10);
if (ke && (ke->entry==ENTRY_ALLOCATED_STRING)) free(ke->value.allocstr);
if (error_fin_displayed==0)
Screen_refresh(); /* Quasiment le seul endroit où on le met */
Expand Down

0 comments on commit 9a66f4e

Please sign in to comment.