diff options
author | Jakub Sławiński | 2006-02-05 15:14:03 +0100 |
---|---|---|
committer | Joshua Judson Rosen | 2014-07-17 21:15:02 +0200 |
commit | b457fec36399c1f7de093d5e92bb4fa453b79c86 (patch) | |
tree | 2084c9a78d40213015e6f10e3e9e01bc4c0c51f1 /src/string_functions.c | |
parent | Update copyright statements. (diff) | |
download | apf-b457fec36399c1f7de093d5e92bb4fa453b79c86.tar.gz |
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
Diffstat (limited to 'src/string_functions.c')
-rw-r--r-- | src/string_functions.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <config.h> - #include <stdlib.h> #include <string.h> @@ -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) { |