You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2016/01/18 00:27:04 UTC

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

Repository: trafficserver
Updated Branches:
  refs/heads/master 42534a43a -> 7115b366b


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/7115b366
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/7115b366
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/7115b366

Branch: refs/heads/master
Commit: 7115b366b5e2946960175a596daf1b5374443876
Parents: 42534a4
Author: Leif Hedstrom <zw...@apache.org>
Authored: Sun Jan 17 13:55:24 2016 -0700
Committer: Masakazu Kitajo <ma...@apache.org>
Committed: Mon Jan 18 08:26:06 2016 +0900

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


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7115b366/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)
         }
       }