From: Peter C. <pet...@ne...> - 2001-12-12 09:31:56
|
> From: Adrian St. John [mailto:AS...@pa...] > When I get a chance, I'll run the source through lint here (I have one > that deals with C++) Cool! What is it, and is it generally available? > > The rest of the changes are the creation of a tmpstring which is > > used when calling tigetnum (and friends) which insist on a char * > > and not a const char *. Again, I believe this is safe, but I > > don't tend to mess with strcpy or malloc, so I am quite prepared to > > believe that it is wrong. Also, whilst I know that it is the > > terminal handling code, I am not sure how to test it. > > Ah, that one. My personal preference would be to take the programmer > who wrote those functions out to a wall and shoot them. Do all the platforms we use have C++ compilers that can cope with const_cast<char *>(str)? - Peter |