Minor updates...
This commit is contained in:
parent
8fd3defd46
commit
91d8dd0bcd
10
xtandard.c
10
xtandard.c
@ -222,7 +222,7 @@ void * record (void) {
|
|||||||
|
|
||||||
buffer [offset] = '\0';
|
buffer [offset] = '\0';
|
||||||
|
|
||||||
in (& buffer [offset], sizeof (* buffer));
|
in (& buffer [offset], (int) sizeof (* buffer));
|
||||||
|
|
||||||
++offset;
|
++offset;
|
||||||
} while (buffer [offset - 1] != '\0');
|
} while (buffer [offset - 1] != '\0');
|
||||||
@ -469,11 +469,11 @@ void file_list_insert_character (char character, int position) {
|
|||||||
int offset;
|
int offset;
|
||||||
|
|
||||||
++file_list_size [file_list_active];
|
++file_list_size [file_list_active];
|
||||||
/*
|
|
||||||
if (file_list_size [file_list_active] <= string_length (file_list_data [file_list_active])) {
|
if (file_list_size [file_list_active] < string_length (file_list_data [file_list_active])) {
|
||||||
file_list_data [file_list_active] = reallocate (file_list_data [file_list_active], file_list_size [file_list_active]);
|
file_list_data [file_list_active] = reallocate (file_list_data [file_list_active], file_list_size [file_list_active]);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
file_list_data [file_list_active] = reallocate (file_list_data [file_list_active], file_list_size [file_list_active]);
|
file_list_data [file_list_active] = reallocate (file_list_data [file_list_active], file_list_size [file_list_active]);
|
||||||
|
|
||||||
for (offset = file_list_size [file_list_active] - 1; offset != position; --offset) {
|
for (offset = file_list_size [file_list_active] - 1; offset != position; --offset) {
|
||||||
@ -495,6 +495,8 @@ void file_list_remove_character (int position) {
|
|||||||
for (offset = position - 1; offset != file_list_size [file_list_active] - 1; ++offset) {
|
for (offset = position - 1; offset != file_list_size [file_list_active] - 1; ++offset) {
|
||||||
file_list_data [file_list_active] [offset] = file_list_data [file_list_active] [offset + 1];
|
file_list_data [file_list_active] [offset] = file_list_data [file_list_active] [offset + 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file_list_data [file_list_active] [offset] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
void file_list_delete (void) {
|
void file_list_delete (void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user