mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-07-18 00:44:51 +00:00
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:
parent
f6147e785a
commit
579b6c509d
1 changed files with 1 additions and 1 deletions
2
io.c
2
io.c
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue