diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-03-21 17:28:23 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-03-21 17:28:47 +1100 |
commit | 14c28ae48516cba9995ef06a6e525b7152d157c1 (patch) | |
tree | d3a27b07c4e5135c2e9b0e6920fc4dd4be97c912 /src/flac | |
parent | 2d6354ff2a618a79d40edbd4f208b4b07c5422f1 (diff) | |
download | flac-14c28ae48516cba9995ef06a6e525b7152d157c1.tar.gz |
Replace a couple of safe_strncpy/cat with snprintf.
Diffstat (limited to 'src/flac')
-rw-r--r-- | src/flac/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flac/main.c b/src/flac/main.c index 5e4879fb..433b9502 100644 --- a/src/flac/main.c +++ b/src/flac/main.c @@ -978,8 +978,8 @@ int parse_option(int short_option, const char *long_option, const char *option_a return usage_error("ERROR: too many seekpoints requested\n"); } else { - safe_strncat(option_values.requested_seek_points, option_argument, sizeof(option_values.requested_seek_points)); - safe_strncat(option_values.requested_seek_points, ";", sizeof(option_values.requested_seek_points)); + size_t len = strlen(option_values.requested_seek_points); + flac_snprintf(option_values.requested_seek_points+len, sizeof(option_values.requested_seek_points) - len, "%s;", option_argument); } } break; |