This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit edd9912ffb4a44068aae2ec21f0449d3d53616a3
Author: Justus Winter <[email protected]>
Date:   Wed Nov 20 11:35:14 2013 +0100

    libps: fix the length computation in fprint_frac_value
    
    Found using the Clang Static Analyzer.
    
    * libps/spec.c (fprint_frac_value): Fix computation of value_len.
---
 libps/spec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libps/spec.c b/libps/spec.c
index b34a234..146aba5 100644
--- a/libps/spec.c
+++ b/libps/spec.c
@@ -416,7 +416,7 @@ sprint_frac_value (char *buf,
 
   if (value >= 1000)            /* the integer part */
     value_len = 4;              /* values 1000-1023 */
-  if (value >= 100)            
+  else if (value >= 100)
     value_len = 3;
   else if (value >= 10)
     value_len = 2;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git

Reply via email to