qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tr...@apache.org
Subject [qpid-dispatch] branch master updated: DISPATCH-1289 - Fixed a snprintf usage error flagged in Travis
Date Fri, 15 Mar 2019 18:04:12 GMT
This is an automated email from the ASF dual-hosted git repository.

tross pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/master by this push:
     new de5b7aa  DISPATCH-1289 - Fixed a snprintf usage error flagged in Travis
de5b7aa is described below

commit de5b7aa4959396c80dc8f0aca56f6b3e9750f47a
Author: Ted Ross <tross@redhat.com>
AuthorDate: Fri Mar 15 14:03:24 2019 -0400

    DISPATCH-1289 - Fixed a snprintf usage error flagged in Travis
---
 src/router_core/terminus.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/router_core/terminus.c b/src/router_core/terminus.c
index b88befc..2a23dd3 100644
--- a/src/router_core/terminus.c
+++ b/src/router_core/terminus.c
@@ -111,7 +111,7 @@ void qdr_terminus_format(qdr_terminus_t *term, char *output, size_t *size)
         case PN_DELIVERIES:    text = " dur:deliveries"; break;
         }
 
-        len     = snprintf(output, *size, text);
+        len     = snprintf(output, *size, "%s", text);
         output += len;
         *size  -= len;
 
@@ -122,7 +122,7 @@ void qdr_terminus_format(qdr_terminus_t *term, char *output, size_t *size)
         case PN_EXPIRE_NEVER:           text = "";              break;
         }
 
-        len     = snprintf(output, *size, text);
+        len     = snprintf(output, *size, "%s", text);
         output += len;
         *size  -= len;
 
@@ -132,7 +132,7 @@ void qdr_terminus_format(qdr_terminus_t *term, char *output, size_t *size)
         case PN_DIST_MODE_MOVE:        text = " dist:move";   break;
         }
 
-        len     = snprintf(output, *size, text);
+        len     = snprintf(output, *size, "%s", text);
         output += len;
         *size  -= len;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message