Fixed a bug in output.

git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@172 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
Dag Wieers 2008-01-19 03:28:54 +00:00
parent f6147e785a
commit 579b6c509d

2
io.c
View file

@ -62,7 +62,7 @@ int readline(PTSTREAM *pts)
if( args_info.verbose_flag )
{
/* Copy line of data into dstr without trailing newline */
char * dstr = malloc(strlen(buf) + 1);
char * dstr = malloc(sizeof(buf) + 1);
strlcpy( dstr, buf, strlen(buf) - 1);
if (strcmp(dstr, ""))
message( "<- %s\n", dstr );