Sun, 17 Dec 2017 14:35:01 +0100
fixes some warnings
dav/tar.c | file | annotate | diff | comparison | revisions | |
libidav/davqlexec.c | file | annotate | diff | comparison | revisions |
--- a/dav/tar.c Sun Dec 17 14:26:03 2017 +0100 +++ b/dav/tar.c Sun Dec 17 14:35:01 2017 +0100 @@ -118,7 +118,8 @@ h.version[1] = '0'; // uname/gname - zero // devmajor/devminor - snprintf(h.devmajor, 16, "%015o", 0); + char *devbuf = (char*)h.devmajor; + snprintf(devbuf, 16, "%015o", 0); h.devmajor[7] = ' '; h.devminor[7] = ' '; // prefix