summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-04-05 11:29:12 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-04-05 11:29:12 +0200
commit2848eb3c13781e90cf631083f905eee70078f645 (patch)
treeed37ef57a6b20fdcc537c1e77f9213e1849f27d6 /src/edit.c
parent79812fda52d51bf87814cb953b826de4af091db0 (diff)
interface_editor_location(): move variable definition (code style)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index b3e0e3a..eee2cff 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -200,10 +200,10 @@ static void interface_editor_location(const disk_t *disk, uint64_t *lba)
case 'l':
case 'L':
{
- uint64_t l_sector;
sprintf(def, "%lu", (unsigned long)(*lba / disk->sector_size));
mvwaddstr(stdscr,INTER_GEOM_Y, INTER_GEOM_X, "Enter the logical sector offset: ");
if (get_string(stdscr, response, sizeof(response), def) > 0) {
+ uint64_t l_sector;
l_sector= strtoul(response, NULL, 10);
l_sector*=disk->sector_size;
if (l_sector <= disk->disk_size) {