diff options
author | Ingo Huerner <ingo.huerner@xse.de> | 2014-02-25 14:33:29 +0100 |
---|---|---|
committer | Ingo Huerner <ingo.huerner@xse.de> | 2014-02-25 14:33:29 +0100 |
commit | 7756fc49b8203cd523b42d1dc04e076f4b72489d (patch) | |
tree | 6bd21e8f655649846ab1e82b847f08f83c9e1623 /src/persistence_client_library_file.c | |
parent | 1e26a9ac5535b2cfac6cb74d20ef09d46e2846f3 (diff) | |
download | persistence-client-library-7756fc49b8203cd523b42d1dc04e076f4b72489d.tar.gz |
Corrected handle when using plugins; corrected array size for getpath function; corrected mutex handling for deliver to mainloop
Diffstat (limited to 'src/persistence_client_library_file.c')
-rw-r--r-- | src/persistence_client_library_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/persistence_client_library_file.c b/src/persistence_client_library_file.c index 77f4331..a331140 100644 --- a/src/persistence_client_library_file.c +++ b/src/persistence_client_library_file.c @@ -459,9 +459,9 @@ int pclFileCreatePath(unsigned int ldbid, const char* resource_id, unsigned int } *size = strlen(dbPath); - *path = malloc((*size)+1); // allocate 1 byte for the string termination - memcpy(*path, dbPath, (*size)+1); - (*path)[(*size)+1] = '\0'; // terminate string + *path = malloc((*size)+1); // allocate 1 byte for the string termination + memcpy(*path, dbPath, (*size)); + (*path)[(*size)] = '\0'; // terminate string gOssHandleArray[handle].filePath = *path; if(access(*path, F_OK) == -1) |