summaryrefslogtreecommitdiffstats
path: root/crypto/property
diff options
context:
space:
mode:
authorx2018 <xkernel.wang@foxmail.com>2021-10-26 15:16:18 +0800
committerPauli <pauli@openssl.org>2021-10-28 13:10:46 +1000
commit1287dabd0b23326be491125698dd982e4ae28887 (patch)
tree3d6a62803bdd3d8ca9378eda3e7316a9c995c001 /crypto/property
parent01451721afebabd0b7bdcd4cb3a183c9b590d266 (diff)
fix some code with obvious wrong coding style
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16918)
Diffstat (limited to 'crypto/property')
-rw-r--r--crypto/property/property_parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/property/property_parse.c b/crypto/property/property_parse.c
index 3673fd7b05..3c0a6ff793 100644
--- a/crypto/property/property_parse.c
+++ b/crypto/property/property_parse.c
@@ -576,7 +576,7 @@ static void put_char(char ch, char **buf, size_t *remain, size_t *needed)
++*needed;
return;
}
- if(*remain == 1)
+ if (*remain == 1)
**buf = '\0';
else
**buf = ch;
@@ -595,16 +595,16 @@ static void put_str(const char *str, char **buf, size_t *remain, size_t *needed)
if (*remain == 0)
return;
- if(*remain < len + 1)
+ if (*remain < len + 1)
len = *remain - 1;
- if(len > 0) {
+ if (len > 0) {
strncpy(*buf, str, len);
*buf += len;
*remain -= len;
}
- if(len < olen && *remain == 1) {
+ if (len < olen && *remain == 1) {
**buf = '\0';
++*buf;
--*remain;