summaryrefslogtreecommitdiff
path: root/usr/src/lib/efcode/engine/properties.c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2020-09-08 11:35:00 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2020-09-08 11:35:00 +0000
commit59a0703a940438d24a8cd9911a57711b8028c496 (patch)
tree816119c979bf679b1cef812f7c2f36f2d743800a /usr/src/lib/efcode/engine/properties.c
parent538446bd297154cf5d4db74adf78dfa23d05df0c (diff)
parent93d26c05275be2c44aedd16705237484fc0a0990 (diff)
downloadillumos-joyent-59a0703a940438d24a8cd9911a57711b8028c496.tar.gz
[illumos-gate merge]
commit 93d26c05275be2c44aedd16705237484fc0a0990 13015 fruaccess: comparison between pointer and zero character constant commit ba12489a763ade223e478c59fdc4cb752fcba568 13011 tsalarm: '*' in boolean context, suggest '&&' instead commit 09e6639baaf32231365cb9895bf1e0ea006a2a60 12885 efcode: smatch and build errors commit e4af2f17fac5babc25d094f1bf22dd06515f66c7 13104 zfs: offset_t is signed and can not be > MAXOFFSET_T commit 7aaede4825001926ae223b8c47ef9e4d0d6021ba 12974 libc: left shift of negative value commit 712669c9fa9278704a4ccefe1d96acaf29397d36 13103 zfs: zvol_strategy() warn: unsigned 'off' is never less than zero commit e075c017fe4c71cde62297bcc90d3411c0f4ad1d 12512 dispadmin.1m manpage is missing \fB \fR around FX commit 9b0881404678e5235132f9320785c3f5ce6e71f6 13087 zfs: zfs_ereport_post() and zfs_ereport_start() return values are ignored commit 5365b8a5984eca60a3cedc7f9f738e51fb056bec 12936 bhyve vlapic needs ability to bypass isrvec_stk
Diffstat (limited to 'usr/src/lib/efcode/engine/properties.c')
-rw-r--r--usr/src/lib/efcode/engine/properties.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/lib/efcode/engine/properties.c b/usr/src/lib/efcode/engine/properties.c
index ff14c1f03c..966d0f005b 100644
--- a/usr/src/lib/efcode/engine/properties.c
+++ b/usr/src/lib/efcode/engine/properties.c
@@ -24,8 +24,6 @@
* All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -738,7 +736,7 @@ print_property(fcode_env_t *env, prop_t *p, char *prepend)
char *name = (p->name ? p->name : "<noname>");
if (prepend) {
- sprintf(buf, "%s %s", prepend, name);
+ (void) snprintf(buf, sizeof (buf), "%s %s", prepend, name);
name = buf;
}
print_indented(name);