Re: A Few Questions..

From: Eric Green (egreen@marit.cypronet.com)
Date: 04/14/96


> Eric> if (file_to_string(file, buf) == -1) send_to_char("Sorry, an error
> Eric> occurred while reading that file.\r\n", ch)\ ; else
> Eric> page_string(ch->desc, buf, 1); break;
> 
> watch yourself... if length of file > size of buf, you will get core from a
> bound exceeding
> 

file_to_string() in db.c does exactly that... watches that the length
of file is less than the size of buf.

Eric



This archive was generated by hypermail 2b30 : 12/18/00 PST