diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-12-01 11:15:41 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-12-02 10:34:36 +0100 |
commit | b99037eae6a7af058cdb56f316d9c8e4ca603d86 (patch) | |
tree | 99ff47c186fe80ffbb8ab124f73e2dbb99ed0eef /src/ipcpd/normal/path.c | |
parent | 8e0165c2ee9659ee57934947369659c093db621e (diff) | |
download | ouroboros-b99037eae6a7af058cdb56f316d9c8e4ca603d86.tar.gz ouroboros-b99037eae6a7af058cdb56f316d9c8e4ca603d86.zip |
ipcpd: normal: Address review comments
This addresses some comments after a code review by Dimitri.
Diffstat (limited to 'src/ipcpd/normal/path.c')
-rw-r--r-- | src/ipcpd/normal/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/normal/path.c b/src/ipcpd/normal/path.c index 08d33347..d9b64968 100644 --- a/src/ipcpd/normal/path.c +++ b/src/ipcpd/normal/path.c @@ -38,7 +38,7 @@ char * pathname_create(const char * name) assert(name); - tmp = malloc(strlen(name) + strlen(PATH_DELIMITER)); + tmp = malloc(strlen(name) + strlen(PATH_DELIMITER) + 1); if (tmp == NULL) return NULL; @@ -58,7 +58,7 @@ char * pathname_append(char * pname, tmp = malloc(strlen(pname) + strlen(PATH_DELIMITER) + - strlen(name)); + strlen(name) + 1); if (tmp == NULL) return NULL; |