diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-12-17 09:25:48 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-12-17 10:00:05 +0000 |
| commit | 4ee0b28b02a4633a4f4e6b41b9da57e41bcf9356 (patch) | |
| tree | c343f45c0a1cead2686a408807a4b59259a37b2a /config.c | |
| parent | config: value_to_pt_or_px(): don’t allow empty px values (key=px) (diff) | |
config: font-size-adjustment: don’t allow empty %-values (key=%)
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -932,7 +932,7 @@ parse_section_main(struct context *ctx) char *end = NULL; float percent = strtof(ctx->value, &end); - if (!(errno == 0 && end == ctx->value + len - 1)) { + if (!(len > 1 && errno == 0 && end == ctx->value + len - 1)) { LOG_CONTEXTUAL_ERR( "invalid percent value (must be in the form 10.5%%)"); return false; |
