version 1.172, 2019/03/13 15:37:28 |
version 1.173, 2019/03/13 18:09:12 |
|
|
|
|
/* Make a copy of the key. */ |
/* Make a copy of the key. */ |
copy = copy0 = xstrndup(key, keylen); |
copy = copy0 = xstrndup(key, keylen); |
|
log_debug("%s: format = '%s'", __func__, copy); |
|
|
/* Process modifier list. */ |
/* Process modifier list. */ |
list = format_build_modifiers(ft, ©, &count); |
list = format_build_modifiers(ft, ©, &count); |
|
|
cmp = fm; |
cmp = fm; |
} |
} |
} |
} |
log_debug("%s: remaining = '%s'", __func__, copy); |
|
|
|
/* Is this a literal string? */ |
/* Is this a literal string? */ |
if (modifiers & FORMAT_LITERAL) { |
if (modifiers & FORMAT_LITERAL) { |
|
|
} |
} |
|
|
/* Expand the buffer and copy in the value. */ |
/* Expand the buffer and copy in the value. */ |
|
log_debug("%s: '%s' -> '%s'", __func__, copy0, value); |
valuelen = strlen(value); |
valuelen = strlen(value); |
while (*len - *off < valuelen + 1) { |
while (*len - *off < valuelen + 1) { |
*buf = xreallocarray(*buf, 2, *len); |
*buf = xreallocarray(*buf, 2, *len); |