Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bstring/bstraux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ bSecureInput(int maxlen, int termchar, bNgetc vgetchar, void *vgcCtx)
(m = b->mlen + 1) <= (size_t)b->mlen) {
t = NULL;
} else {
t = bfromcstralloc (m, "");
t = bfromcstralloc ((int)m, "");
}
if (t) {
memcpy(t->data, b->data, i);
Expand All @@ -1017,7 +1017,7 @@ bSecureInput(int maxlen, int termchar, bNgetc vgetchar, void *vgcCtx)
}
b->data[i] = (unsigned char)c;
}
b->slen = i;
b->slen = (int)i;
b->data[i] = (unsigned char)'\0';
return b;
}
Expand Down
2 changes: 1 addition & 1 deletion bstring/bstrlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ bcatcstr(bstring b, const char *s)
}
b->slen += i;
/* Need to explicitely resize and concatenate tail */
return bcatblk(b, s, strlen(s));
return bcatblk(b, s, (int)strlen(s));
}

int
Expand Down
Loading