[Pkg-wmaker-commits] [wmcalc] 28/65: wmcalc: Fix -Warray-bounds compiler warning.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sun Aug 23 13:54:04 UTC 2015


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

dtorrance-guest pushed a commit to branch master
in repository wmcalc.

commit baeaa1884f5b12bfde6b5798804bcc61f84c68d7
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Jan 10 10:59:46 2015 -0600

    wmcalc: Fix -Warray-bounds compiler warning.
---
 wmcalc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wmcalc.c b/wmcalc.c
index 36bca61..3af1d66 100644
--- a/wmcalc.c
+++ b/wmcalc.c
@@ -114,8 +114,8 @@ int main( int argc, char **argv ) {
   strcat(tempfile, CONFTEMPFILE);      // Setup name for temp file
 
   /* Clear the Calculator Display */
-  for(i=0; i<11; i++) DispString[i] = ' ';
-  DispString[11] = '\0';
+  for(i=0; i<DISPSIZE; i++) DispString[i] = ' ';
+  DispString[DISPSIZE] = '\0';
 
   /* Parse Command Line Arguments */  
   for ( i=1; i < argc; i++ ) {

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



More information about the Pkg-wmaker-commits mailing list