This commit is contained in:
Dennis Heimbigner 2023-04-27 15:12:26 -06:00
parent 53021408a6
commit 59c6d29394
2 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,7 @@ ncbytesappend(NCbytes* bb, char elem)
int
ncbytescat(NCbytes* bb, const char* s)
{
if(bb == NULL) return ncbytesfail();
if(s == NULL) return 1;
ncbytesappendn(bb,(void*)s,strlen(s)+1); /* include trailing null*/
/* back up over the trailing null*/

View File

@ -492,6 +492,9 @@ makes3fullpath(const char* rooturl, const char* bucket, const char* prefix, cons
{
int stat = NC_NOERR;
assert(url != NULL);
assert(rooturl != NULL);
ncbytescat(url,rooturl);
if(bucket) {