summaryrefslogtreecommitdiff
path: root/src/flac
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2013-03-21 17:28:23 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-03-21 17:28:47 +1100
commit14c28ae48516cba9995ef06a6e525b7152d157c1 (patch)
treed3a27b07c4e5135c2e9b0e6920fc4dd4be97c912 /src/flac
parent2d6354ff2a618a79d40edbd4f208b4b07c5422f1 (diff)
downloadflac-14c28ae48516cba9995ef06a6e525b7152d157c1.tar.gz
Replace a couple of safe_strncpy/cat with snprintf.
Diffstat (limited to 'src/flac')
-rw-r--r--src/flac/main.c4
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;