diff options
-rw-r--r-- | subopt-helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subopt-helper.c b/subopt-helper.c index 1ffd5fe746..de103e1126 100644 --- a/subopt-helper.c +++ b/subopt-helper.c @@ -158,7 +158,7 @@ int subopt_parse( char const * const str, opt_t * opts ) if (tmp.str && tmp.len > 0) { *valp = malloc(tmp.len + 1); memcpy(*valp, tmp.str, tmp.len); - *valp[tmp.len] = 0; + (*valp)[tmp.len] = 0; } break; } |