Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit e3267ce

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
fix ZMQ on Linux
- ZMQ on Linux never worked as it was killed by an extra dot :) - dump the correct filename for ZMQ to make OMPython work Belonging to [master]: - #2202
1 parent 12121df commit e3267ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/runtime/zeromqimpl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void* ZeroMQ_initialize(const char *zeroMQFileSuffix)
6363
#else
6464
char *tmp_user = getenv("USER");
6565
zeroMQFilePath = (char*)malloc(strlen(tempPath) + strlen("/openmodelica..port.") + strlen(tmp_user ? tmp_user : "nobody") + strlen(zeroMQFileSuffix) + 1);
66-
sprintf(zeroMQFilePath, "%s/openmodelica.%s.port.%s", tempPath, tmp_user ? tmp_user : "nobody", zeroMQFileSuffix);
66+
sprintf(zeroMQFilePath, "%s/openmodelica.%s.port%s", tempPath, tmp_user ? tmp_user : "nobody", zeroMQFileSuffix);
6767
#endif
6868
// Create the file with port number
6969
FILE *fp;

0 commit comments

Comments
 (0)