../source3/utils/smbget.c: In function ‘smb_download_file’:
../source3/utils/smbget.c:97:27: error: ‘b’ directive output may be truncated writing 1 byte into a region of size between 0 and 19 [-Werror=format-truncation=]
snprintf(buffer, l, "%jdb", (intmax_t)s);
^
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
double avg = 0.0;
long eta = -1;
double prcnt = 0.0;
- char hpos[20], htotal[20], havg[20];
+ char hpos[22], htotal[22], havg[22];
char *status, *filename;
int len;
if (now - start) {