On Thu, 2 Oct 1997, Andrew Helm wrote: >Change this to read: > > if (feof(fl)) { > *buf = '\0'; > return 0; > } else { > strcpy(buf, temp); > return lines; > } If get_line() returns a 0, you shouldn't be using the buffer anyway, that'd be the place to fix the code. -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST