summaryrefslogtreecommitdiffstats
path: root/src/hiddenn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-12-28 07:49:05 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-12-28 07:49:05 +0100
commit2266aed7f373e2f9b70f0b3201f19b80392fcfa7 (patch)
treebb2d94be9939d2073a03cedc71f5471e91cf0439 /src/hiddenn.c
parent983d5cf0ece3d8f4002477ef474f1515075900c8 (diff)
Better check for HPA/DCO reporting
Diffstat (limited to 'src/hiddenn.c')
-rw-r--r--src/hiddenn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hiddenn.c b/src/hiddenn.c
index 0ea1f7d..2e45343 100644
--- a/src/hiddenn.c
+++ b/src/hiddenn.c
@@ -74,7 +74,7 @@ int interface_check_hidden_ncurses(disk_t *disk)
wmove(stdscr,line++,0);
wprintw(stdscr, "Host Protected Area (HPA) present.\n");
}
- if(disk->native_max < disk->dco)
+ if(disk->native_max!=0 && disk->native_max < disk->dco)
{
wmove(stdscr,line,0);
wprintw(stdscr, "Device Configuration Overlay (DCO) present.\n");