lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] git commit: refs/heads/master - Fix calculation of buffer size in S_vcat_mess
Date Sun, 01 Sep 2013 21:44:47 GMT
Updated Branches:
  refs/heads/master e19687f9a -> 2289cea4e


Fix calculation of buffer size in S_vcat_mess


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/2289cea4
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/2289cea4
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/2289cea4

Branch: refs/heads/master
Commit: 2289cea4e8b04c8285a8806c4e2c0c4c14b026d6
Parents: e19687f
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sun Sep 1 23:41:25 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sun Sep 1 23:41:25 2013 +0200

----------------------------------------------------------------------
 clownfish/runtime/core/Clownfish/Err.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/2289cea4/clownfish/runtime/core/Clownfish/Err.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/Err.c b/clownfish/runtime/core/Clownfish/Err.c
index fbf883f..9712ef2 100644
--- a/clownfish/runtime/core/Clownfish/Err.c
+++ b/clownfish/runtime/core/Clownfish/Err.c
@@ -102,7 +102,7 @@ static void
 S_vcat_mess(CharBuf *message, const char *file, int line, const char *func,
             const char *pattern, va_list args) {
     size_t guess_len = strlen(file)
-                       + func ? strlen(func) : 0
+                       + (func ? strlen(func) : 0)
                        + strlen(pattern)
                        + 30;
     CB_Grow(message, guess_len);


Mime
View raw message