diff options
author | Sander Vrijders <[email protected]> | 2016-09-02 15:04:19 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-09-02 15:04:19 +0200 |
commit | 10d74eef2851e032ee92c62907a7e8e6db230369 (patch) | |
tree | 5391bc92f4c3e614dbe1a1dfe908dbe6d3cccb13 /src/lib/shm_rdrbuff.c | |
parent | ee2235c62cf0c51f7188fdeb6ac283c1e2ea0335 (diff) | |
parent | 4f44c91c68a3706e04334066f28471d56cc71849 (diff) | |
download | ouroboros-10d74eef2851e032ee92c62907a7e8e6db230369.tar.gz ouroboros-10d74eef2851e032ee92c62907a7e8e6db230369.zip |
Merged in dstaesse/ouroboros/be-split-fp (pull request #238)
lib: Add northbound ringbuffers
Diffstat (limited to 'src/lib/shm_rdrbuff.c')
-rw-r--r-- | src/lib/shm_rdrbuff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/shm_rdrbuff.c b/src/lib/shm_rdrbuff.c index 93a889ce..07574f1a 100644 --- a/src/lib/shm_rdrbuff.c +++ b/src/lib/shm_rdrbuff.c @@ -139,13 +139,13 @@ static char * rdrb_filename(enum qos_cube qos) ++chars; } while (qm > 0); - str = malloc(strlen(SHM_RDRB_PREFIX) + chars + 2); + str = malloc(strlen(SHM_RDRB_PREFIX) + chars + 1); if (str == NULL) { LOG_ERR("Failed to create shm_rdrbuff: Out of Memory."); return NULL; } - sprintf(str, "%s.%d", SHM_RDRB_PREFIX, (int) qos); + sprintf(str, "%s%d", SHM_RDRB_PREFIX, (int) qos); return str; } |