Changeset 371bd7d in mainline for uspace/app/bdsh/input.c
- Timestamp:
- 2010-03-27T09:22:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36a75a2
- Parents:
- cd82bb1 (diff), eaf22d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/app/bdsh/input.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
rcd82bb1 r371bd7d 32 32 #include <stdio.h> 33 33 #include <stdlib.h> 34 #include <str ing.h>34 #include <str.h> 35 35 #include <io/console.h> 36 36 #include <io/keycode.h> … … 508 508 { 509 509 int sa, sb; 510 wchar_t tmp_c;511 510 char *str; 512 511 … … 514 513 515 514 if (sb < ti->nc) { 516 tmp_c = ti->buffer[sb];515 wchar_t tmp_c = ti->buffer[sb]; 517 516 ti->buffer[sb] = '\0'; 518 } 519 520 str = wstr_to_astr(ti->buffer + sa); 521 522 if (sb < ti->nc) 517 str = wstr_to_astr(ti->buffer + sa); 523 518 ti->buffer[sb] = tmp_c; 524 519 } else 520 str = wstr_to_astr(ti->buffer + sa); 521 525 522 if (str == NULL) 526 523 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.
