New upstream version 22.0.3+dfsg1
This commit is contained in:
parent
665f64a933
commit
cdc9a9fc87
334 changed files with 14525 additions and 2639 deletions
|
|
@ -76,11 +76,12 @@ char *cf_literal_to_str(const char *literal, size_t count)
|
|||
if (literal[0] != '\"' && literal[0] != '\'')
|
||||
return NULL;
|
||||
|
||||
str = bmalloc(count - 1);
|
||||
temp_src = literal;
|
||||
/* strip leading and trailing quote characters */
|
||||
str = bzalloc(--count);
|
||||
temp_src = literal + 1;
|
||||
temp_dst = str;
|
||||
|
||||
while (*temp_src) {
|
||||
while (*temp_src && --count > 0) {
|
||||
if (*temp_src == '\\') {
|
||||
temp_src++;
|
||||
cf_convert_from_escape_literal(&temp_dst, &temp_src);
|
||||
|
|
|
|||
|
|
@ -207,11 +207,13 @@ static inline void *darray_push_back_new(const size_t element_size,
|
|||
static inline size_t darray_push_back_array(const size_t element_size,
|
||||
struct darray *dst, const void *array, const size_t num)
|
||||
{
|
||||
size_t old_num = dst->num;
|
||||
|
||||
assert(array != NULL);
|
||||
assert(num != 0);
|
||||
size_t old_num;
|
||||
if (!dst)
|
||||
return 0;
|
||||
if (!array || !num)
|
||||
return dst->num;
|
||||
|
||||
old_num = dst->num;
|
||||
darray_resize(element_size, dst, dst->num+num);
|
||||
memcpy(darray_item(element_size, dst, old_num), array,
|
||||
element_size*num);
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ static inline bool create_process(const char *cmd_line, HANDLE stdin_handle,
|
|||
bool success = false;
|
||||
|
||||
si.cb = sizeof(si);
|
||||
si.dwFlags = STARTF_USESTDHANDLES;
|
||||
si.dwFlags = STARTF_USESTDHANDLES | STARTF_FORCEOFFFEEDBACK;
|
||||
si.hStdInput = stdin_handle;
|
||||
si.hStdOutput = stdout_handle;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue