diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-08-16 11:30:35 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-08-16 11:30:35 (GMT) |
commit | 161c0f8ab227af5033b1b6456607b9b9c3bc60df (patch) | |
tree | cadf14ab1bfe857ac9a7904fe9ea98de554751d8 /src/glibext | |
parent | 56ee4d3ecddeee05f11083fcc1595e3756b91790 (diff) |
Improved the code for handling vmpa_t definitions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@388 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/glibext')
-rw-r--r-- | src/glibext/gbufferline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glibext/gbufferline.c b/src/glibext/gbufferline.c index 201c64b..fbca259 100644 --- a/src/glibext/gbufferline.c +++ b/src/glibext/gbufferline.c @@ -418,7 +418,7 @@ vmpa_t g_buffer_line_get_address(const GBufferLine *line) void g_buffer_line_fill_for_instr(GBufferLine *line, MemoryDataSize psize, MemoryDataSize vsize, const bin_t *content, off_t length, bool full) { size_t len; /* Taille de l'élément inséré */ - char *address; /* Adresse au format texte */ + VMPA_BUFFER(address); /* Adresse au format texte */ char *bin_code; /* Tampon du code binaire */ off_t start; /* Début de traitement */ off_t end; /* Limite de traitement */ @@ -428,10 +428,10 @@ void g_buffer_line_fill_for_instr(GBufferLine *line, MemoryDataSize psize, Memor /* Adresse physique puis virtuelle */ - address = vmpa2_phys_to_string(line->addr, psize, &len); + vmpa2_phys_to_string(line->addr, psize, address, &len); g_buffer_line_insert_text(line, BLC_PHYSICAL, address, len, RTT_RAW); - address = vmpa2_virt_to_string(line->addr, vsize, &len); + vmpa2_virt_to_string(line->addr, vsize, address, &len); g_buffer_line_insert_text(line, BLC_VIRTUAL, address, len, RTT_RAW); /* Code brut */ |