Can someone please provide some insight on this:
int get_smtp_line( void )
{
char ch = '.';
char in_data [255];
char * index;
int retval = 0;
index = in_data;
while (ch != '\n')
{
if ( (retval = gensock_getchar (SMTPSock, 0, &ch) ) )
{
gensock_error ("gensock_getchar", retval);
return -1;
}
else
{
*index = ch;
index++;
}
}
return atoi(in_data);
}
I'm working on an e-mail issue in AIX, and am getting this:
Segmentation fault in get_smtp_line() at line 254 in file ""
I don't understand what's going on here at all though - was hoping someone here might be able to give an "assumption" of what it might be used for. Thanks in advance.