Revision 911

trunk/src/tools99/string4.cpp (revision 911)
20 20
    exit(1);
21 21
  }
22 22
  t=tmp;
23
  delete tmp;
23
  delete [] tmp;
24 24
  return (c);
25 25
}
26 26

  
......
32 32
  ch=c.get();
33 33
  // throw away the newline at the end of the last line if necessary
34 34
  if (ch == '\n') ch=c.get();
35
  char xx=ch;
36 35
  unsigned int ii=0;
37 36
  while (ch != '\n' && ch != EOF)
38 37
  {
......
44 43
    }
45 44
    tmp[ii++]=ch;
46 45
    ch=c.get();
47
    xx=ch;
48 46
  }
49 47
  tmp[ii]='\0';
50 48
  t=tmp;

Also available in: Unified diff