From 579b6c509db7aa4ee483127609daa0f458c6d3b8 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Sat, 19 Jan 2008 03:28:54 +0000 Subject: [PATCH] Fixed a bug in output. git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@172 bc163920-b10d-0410-b2c5-a5491ca2ceef --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.c b/io.c index 1a66a26..accc7ce 100644 --- a/io.c +++ b/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 );