Fix null terminator check - dedup - deduplicating backup program
HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 4ff76106cb1e2c6f99dfd163744224fc57d5fa65
DIR parent 07c41115923df14d48ec16279ed14dcb0df598e1
HTML Author: sin <sin@2f30.org>
Date: Sun, 17 Feb 2019 18:38:04 +0000
Fix null terminator check
Diffstat:
M dedup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/dedup.c b/dedup.c
@@ -511,7 +511,7 @@ int
list(struct ent *ent, void *arg)
{
print_md(ent->md, sizeof(ent->md));
- if (ent->msg)
+ if (ent->msg[0] != '\0')
printf("\t%s\n", ent->msg);
else
putchar('\n');