summaryrefslogtreecommitdiff
path: root/src/persistence_client_library_file.c
diff options
context:
space:
mode:
authorIngo Huerner <ingo.huerner@xse.de>2014-02-25 14:33:29 +0100
committerIngo Huerner <ingo.huerner@xse.de>2014-02-25 14:33:29 +0100
commit7756fc49b8203cd523b42d1dc04e076f4b72489d (patch)
tree6bd21e8f655649846ab1e82b847f08f83c9e1623 /src/persistence_client_library_file.c
parent1e26a9ac5535b2cfac6cb74d20ef09d46e2846f3 (diff)
downloadpersistence-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.c6
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)