Skip to content

Commit

Permalink
Remove poorly spelled SEPERATOR
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeach committed Oct 29, 2014
1 parent db13618 commit 8b19aaf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/records/RecFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,8 @@ RecPipeCreate(const char *base_path, const char *name)
sigaction(SIGPIPE, &act, &oact);

// construct a path/filename for the pipe
#define SEPERATOR "/"
char path[PATH_NAME_MAX];
snprintf(path, sizeof(path), "%s%s%s", base_path, SEPERATOR, name);
#undef SEPERATOR
snprintf(path, sizeof(path), "%s/%s", base_path, name);
if (strlen(path) > (sizeof(servaddr.sun_path) - 1)) {
RecLog(DL_Warning, "[RecPipeCreate] Path name too long; exiting\n");
return REC_HANDLE_INVALID;
Expand Down Expand Up @@ -221,10 +219,8 @@ RecPipeConnect(const char *base_path, const char *name)
int servaddr_len;

// construct a path/filename for the pipe
#define SEPERATOR "/"
char path[PATH_NAME_MAX];
snprintf(path, sizeof(path), "%s%s%s", base_path, SEPERATOR, name);
#undef SEPERATOR
snprintf(path, sizeof(path), "%s/%s", base_path, name);
if (strlen(path) > (sizeof(servaddr.sun_path) - 1)) {
RecLog(DL_Warning, "[RecPipeConnect] Path name too long\n");
return REC_HANDLE_INVALID;
Expand Down

0 comments on commit 8b19aaf

Please sign in to comment.