mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-16 22:28:18 +00:00
committed by
Christian Helmuth
parent
d884cf1a9a
commit
d9d65aa86b
@ -47,7 +47,7 @@ namespace File_system {
|
||||
strncpy(buf, field, sizeof(buf));
|
||||
|
||||
unsigned long value = 0;
|
||||
ascii_to(buf, &value, 8);
|
||||
ascii_to_unsigned_long(buf, value, 8);
|
||||
return value;
|
||||
}
|
||||
|
||||
|
@ -79,8 +79,8 @@ class Rom_session_component : public Genode::Rpc_object<Genode::Rom_session>
|
||||
while (block_id < block_cnt) {
|
||||
|
||||
unsigned long file_size = 0;
|
||||
Genode::ascii_to(_tar_addr + block_id*_BLOCK_LEN + _FIELD_SIZE_LEN,
|
||||
&file_size, 8);
|
||||
Genode::ascii_to_unsigned_long(_tar_addr + block_id*_BLOCK_LEN + _FIELD_SIZE_LEN,
|
||||
file_size, 8);
|
||||
|
||||
/* get name of tar record */
|
||||
char const *record_filename = _tar_addr + block_id*_BLOCK_LEN;
|
||||
|
@ -270,7 +270,7 @@ namespace File_system {
|
||||
/* account for \n when reading from the file */
|
||||
_length += 1;
|
||||
|
||||
ascii_to(_content, &tmp, 10);
|
||||
ascii_to(_content, tmp);
|
||||
|
||||
_size = _check_size_limit(tmp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user