aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_hpjd.c
diff options
context:
space:
mode:
authorGravatar RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> 2021-11-24 14:25:42 +0100
committerGravatar RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> 2021-11-24 14:25:42 +0100
commite2f24a5af3fe407035c8c57f539148f2d694973b (patch)
tree5c0037b638001cfad26a31af281fad50f6540147 /plugins/check_hpjd.c
parent0e311b77d93df4b97c5f8cff73fea74a442ed4bc (diff)
downloadmonitoring-plugins-e2f24a5af3fe407035c8c57f539148f2d694973b.tar.gz
Fix CodeQL checks
Diffstat (limited to 'plugins/check_hpjd.c')
-rw-r--r--plugins/check_hpjd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 65465567..d3d72d7e 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -121,7 +121,7 @@ main (int argc, char **argv)
HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY);
/* get the command to run */
- sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s:%hd %s", PATH_TO_SNMPGET, community,
+ sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s:%s %s", PATH_TO_SNMPGET, community,
address, port, query_string);
/* run the command */