From b457fec36399c1f7de093d5e92bb4fa453b79c86 Mon Sep 17 00:00:00 2001 From: Jakub Sławiński Date: Sun, 5 Feb 2006 15:14:03 +0100 Subject: v0.8 - Fixed: infinite loop after buffering message - Fixed: corrupt packets after closing connections in the stopped state - Fixed: bug in mapping user numbers between afclient and afserver - Fixed: premature close of the service connection - Fixed: invalid buffering when the connection is closing - Added: Multiple tunnels in one afclient<->afserver connection --- src/string_functions.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/string_functions.c') diff --git a/src/string_functions.c b/src/string_functions.c index 705e1a9..17a58a2 100644 --- a/src/string_functions.c +++ b/src/string_functions.c @@ -19,7 +19,6 @@ */ #include - #include #include @@ -30,10 +29,11 @@ * Description: Firstly, the memory allocated for *dest is released. After this, new memory is allocated * and string from src is copied to newly created location. *dest is pointing to new string. * Arguments: dest - pointer to pointer to string previously allocated by malloc family functions. - * If dest is NULL, memory will be allocated and returned from the function. In latter - * case dest will be unchanged + * If dest is NULL, memory will be allocated and returned from the function. In the + * latter case dest will be unchanged * src - string containing data for copying. If src is NULL, new memory is not allocated, but * the old one is still released. + * Returns: The newly allocated string. */ char* @@ -41,7 +41,7 @@ string_cp(char** dest, char* src) { char* tmp; int len = 0; - + /* 1. releasing memory allocated by *dest */ if (dest != NULL) { if ((*dest) != NULL) { -- cgit v1.1