Skip to content

Commit

Permalink
Refactor status printing.
Browse files Browse the repository at this point in the history
Try to use a POOL_MEM whenever possible so we also don't make mistakes
in the length of the status string a possibly overrun an string. Also
if we don't print a string because of being in API mode it doesn't make
sense to even build the status string (as we are not going to print it
anyway.) Also fixes 2 other Coverity high impatct bugs.
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent e5c4d1c commit 45fdd75
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 204 deletions.
1 change: 1 addition & 0 deletions src/dird/catreq.c
Expand Up @@ -670,6 +670,7 @@ bool despool_attributes_from_file(JCR *jcr, const char *file)
be.bstrerror());
goto bail_out;
}
msg[nbytes] = '\0';
size += nbytes;
}
if (!jcr->is_job_canceled()) {
Expand Down

0 comments on commit 45fdd75

Please sign in to comment.