summaryrefslogtreecommitdiffstats
path: root/src/savehdr.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-11-01 13:38:06 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-11-01 13:38:06 +0100
commit7172224ac4cbe9f4c40db5df505cfe8725108e53 (patch)
tree6b0d5445d46c577975c28b8192c0af39f316d5bc /src/savehdr.c
parent9440623c9768c7e235be10ed595149fdb644a911 (diff)
Fix various issues reported by Coverity scan
Diffstat (limited to 'src/savehdr.c')
-rw-r--r--src/savehdr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/savehdr.c b/src/savehdr.c
index ebe5b94..6c1a3b6 100644
--- a/src/savehdr.c
+++ b/src/savehdr.c
@@ -145,6 +145,7 @@ backup_disk_t *partition_load(const disk_t *disk_car, const int verbose)
if(pos!=NULL)
{
strncpy(new_backup->description,++pos,sizeof(new_backup->description));
+ new_backup->description[sizeof(new_backup->description)-1]='\0';
}
}
else if(new_backup!=NULL)