Skip to content

Commit

Permalink
fixed bug with program path
Browse files Browse the repository at this point in the history
  • Loading branch information
npelov committed Dec 7, 2019
1 parent 0e72919 commit 2eabb1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions port-open.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

char *name;
char progPath[1026];
bool hasDir = false;
int program = 1;
long timeout = 0;

Expand Down Expand Up @@ -188,8 +187,8 @@ int main(int argc, char **argv){
}else {
strncpy(progPath, dirTemp, 1024);
int len = strlen(progPath);
progPath[len-1] = '/';
progPath[len] = 0;
progPath[len] = '/';
progPath[len+1] = 0;
}

switch(program){
Expand Down

0 comments on commit 2eabb1b

Please sign in to comment.