* file named AUTHORS, in the root directory of this distribution.
*/
/*
- * $Id: calcsize.c,v 1.44 2006/07/25 18:27:56 martinea Exp $
+ * $Id: calcsize.c,v 1.44.2.1 2006/10/19 18:47:25 martinea Exp $
*
* traverse directory tree to get backup size estimates
*
return 0;
#else
int i;
- char *dirname=NULL, *amname=NULL, *filename=NULL, *qfilename = NULL;
+ char *dirname=NULL;
+ char *amname=NULL, *qamname = NULL;
+ char *filename=NULL, *qfilename = NULL;
unsigned long malloc_hist_1, malloc_size_1;
unsigned long malloc_hist_2, malloc_size_2;
if (argc > 0) {
amname = *argv;
+ qamname = quote_string(amname);
argc--, argv++;
} else {
error("missing <name>");
}
dbprintf(("calcsize: %s %d SIZE " OFF_T_FMT "\n",
- amname, dumplevel[i],
+ qamname, dumplevel[i],
(OFF_T_FMT_TYPE)final_size(i, dirname)));
fprintf(stderr, "%s %d SIZE " OFF_T_FMT "\n",
- amname, dumplevel[i],
+ qamname, dumplevel[i],
(OFF_T_FMT_TYPE)final_size(i, dirname));
fflush(stderr);