aboutsummaryrefslogtreecommitdiffstats
path: root/sm/export.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/export.c')
-rw-r--r--sm/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/export.c b/sm/export.c
index 2b675bdd7..3f7457502 100644
--- a/sm/export.c
+++ b/sm/export.c
@@ -669,7 +669,7 @@ export_p12 (const unsigned char *certimg, size_t certimglen,
protect tool to figure out better error codes for
CHILD_ERR. */
buffer[pos++] = c;
- if (pos >= 5 /*sizeof buffer - 1*/ || c == '\n')
+ if (pos >= sizeof buffer - 5 || c == '\n')
{
buffer[pos - (c == '\n')] = 0;
if (cont_line)