Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.21
 
1.22
 
MAIN:mickey:20110804083232
 
f77.c
_>298298                         s[-2] = 'f';
 299299 
 300300                         if(macroflag) {
<>301 -                                sprintf(buff, "%s %s >%s", macroname, infname, prepfname);
  301+                                snprintf(buff, sizeof(buff), "%s %s >%s",
  302+                                    macroname, infname, prepfname);
302303                                 if(sys(buff)) {
 303304                                         rmf(prepfname);
 304305                                         break;
     
 !
307308                         }
 308309 
 309310                         if(c == 'e')
<>310 -                                sprintf(buff, "efl %s %s >%s", eflags, infname, fortfile);
  311+                                snprintf(buff, sizeof(buff), "efl %s %s >%s",
  312+                                    eflags, infname, fortfile);
311313                         else
<>312 -                                sprintf(buff, "ratfor %s %s >%s", rflags, infname, fortfile);
  314+                                snprintf(buff, sizeof(buff), "ratfor %s %s >%s",
  315+                                    rflags, infname, fortfile);
313316                         status = sys(buff);
 314317                         if(macroflag)
 315318                                 rmf(infname);
     
 !
348351                         if( unreadable(argv[i]) )
 349352                                 break;
 350353                         fprintf(diagfile, "%s:\n", argv[i]);
<>351 -                        sprintf(buff, "cc -c %s", argv[i] );
  354+                        snprintf(buff, sizeof(buff), "cc -c %s", argv[i]);
352355                         if( sys(buff) )
 353356                                 loadflag = NO;
 354357                         else
     
 !
683686 static void
 684687 crfnames(void)
 685688 {
<>686 -        sprintf(asmfname"fort%d.%s", pid, "s");
 687 -        sprintf(prepfname, "fort%d.%s", pid, "p");
  689+        snprintf(asmfnamesizeof(asmfname),  "fort%d.%s", pid, "s");
  690+        snprintf(prepfname, sizeof(prepfname), "fort%d.%s", pid, "p");
<_688691 }
 689692 
 690693 
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-08-22 09:55 +0200