View | Details | Raw Unified | Return to bug 167771
Collapse All | Expand All

(-)src/rateup.c (-4 / +8 lines)
Lines 1132-1140 Link Here
1132
  gdImageDestroy (brush_outp);
1132
  gdImageDestroy (brush_outp);
1133
  free (lhist);
1133
  free (lhist);
1134
  free (graph_label);
1134
  free (graph_label);
1135
  if (kMG)
1135
  if (kMG) {
1136
    free(short_si);
1136
    free(short_si);
1137
1137
    short_si = short_si_def;
1138
  }
1138
#ifdef WIN32
1139
#ifdef WIN32
1139
  /* got to remove the target under win32
1140
  /* got to remove the target under win32
Lines 1563-1570 Link Here
1563
	}
1564
	}
1564
      else
1565
      else
1565
	{
1566
	{
1566
	  strcpy (last.in, in);
1567
	  strncpy (last.in, in, MAXL);
1567
	  strcpy (last.out, out);
1568
	  last.in[MAXL-1]='\0';
1569
	  strncpy (last.out, out,MAXL);
1570
	  last.out[MAXL-1]='\0';
1568
	}
1571
	}
1569
      fprintf (fo, "%lu " LLD " " LLD " " LLD " " LLD "\n",
1572
      fprintf (fo, "%lu " LLD " " LLD " " LLD " " LLD "\n",
1570
	       (unsigned long) now, inrate, outrate, inrate, outrate);
1573
	       (unsigned long) now, inrate, outrate, inrate, outrate);
Lines 2114-2119 Link Here
2114
	      history[x].in = rand () % atoi (argv[argi + 1]);
2117
	      history[x].in = rand () % atoi (argv[argi + 1]);
2115
	      history[x].out = rand () % atoi (argv[argi + 2]);
2118
	      history[x].out = rand () % atoi (argv[argi + 2]);
2116
	    }
2119
	    }
2120
	   /* fallthrough */
2117
	case 'u':		/* Update file */
2121
	case 'u':		/* Update file */
2118
	  if (argv[argi][1] == 'p')
2122
	  if (argv[argi][1] == 'p')
2119
	    {
2123
	    {

Return to bug 167771