diff options
author | Toomas Soome <tsoome@me.com> | 2019-12-18 23:13:45 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-02-20 18:57:16 +0200 |
commit | 51d7c47a2ff052304a62dd7442303287396ae711 (patch) | |
tree | 117308110a86fc9b88a4579e6aab7e9173cbf055 /usr/src/lib | |
parent | 01416760b56c4577b6361044b8d1ea9f3bfd996a (diff) | |
download | illumos-joyent-51d7c47a2ff052304a62dd7442303287396ae711.tar.gz |
12098 libfmnotify: passing argument 1 to restrict-qualified parameter aliases with argument 4
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Matthias Scheler <mscheler@tintri.com>
Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src/lib')
-rw-r--r-- | usr/src/lib/fm/libfmnotify/common/libfmnotify.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/lib/fm/libfmnotify/common/libfmnotify.c b/usr/src/lib/fm/libfmnotify/common/libfmnotify.c index cc3ed572fe..661d0595d2 100644 --- a/usr/src/lib/fm/libfmnotify/common/libfmnotify.c +++ b/usr/src/lib/fm/libfmnotify/common/libfmnotify.c @@ -447,8 +447,10 @@ nd_join_strarray(nd_hdl_t *nhdl, char **arr, uint_t arrsz, char **buf) } (void) snprintf(jbuf, len, "%s", arr[0]); - for (i = 1; i < arrsz; i++) - (void) snprintf(jbuf, len, "%s,%s", jbuf, arr[i]); + for (i = 1; i < arrsz; i++) { + (void) strlcat(jbuf, ",", len); + (void) strlcat(jbuf, arr[i], len); + } *buf = jbuf; return (0); |