trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject trafficserver git commit: TS-4140 Fixes a coverity warning due to changes in TS-4106 (dead code)
Date Mon, 18 Jan 2016 04:50:27 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/6.1.x 9381f6f88 -> 507dbaf62


TS-4140 Fixes a coverity warning due to changes in TS-4106 (dead code)

This closes #427.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/507dbaf6
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/507dbaf6
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/507dbaf6

Branch: refs/heads/6.1.x
Commit: 507dbaf62e3109495fb6aab1938e1b1d7d908ba3
Parents: 9381f6f
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Sun Jan 17 13:55:24 2016 -0700
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Sun Jan 17 21:49:57 2016 -0700

----------------------------------------------------------------------
 iocore/cache/CachePages.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/507dbaf6/iocore/cache/CachePages.cc
----------------------------------------------------------------------
diff --git a/iocore/cache/CachePages.cc b/iocore/cache/CachePages.cc
index d841f70..91d20eb 100644
--- a/iocore/cache/CachePages.cc
+++ b/iocore/cache/CachePages.cc
@@ -126,7 +126,7 @@ struct ShowCache : public ShowCont {
           q = strstr(p, "%0D%0A" /* \r\n */); // we used this in the JS to separate urls
           if (!q)
             q = t;
-          ink_strlcpy(show_cache_urlstrs[s], p, q ? q - p + 1 : sizeof(show_cache_urlstrs[s]));
+          ink_strlcpy(show_cache_urlstrs[s], p, q - p + 1);
           p = q + 6; // +6 ==> strlen(%0D%0A)
         }
       }


Mime
View raw message