Update fspr_snprintf.c

Fix 2119
This commit is contained in:
谭映宇 2023-06-27 16:02:37 +08:00 committed by GitHub
parent 244ccaa8a8
commit 1b7ed59445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1268,7 +1268,7 @@ APR_DECLARE(int) fspr_vformatter(int (*flush_func)(fspr_vformatter_buff_t *),
break;
}
if (prefix_char != NUL && s != S_NULL && s != char_buf) {
if (prefix_char != NUL &&(strncmp(s, S_NULL, sizeof(S_NULL))) && s != char_buf) {
*--s = prefix_char;
s_len++;
}