Skip to content

Commit eb4d4e5

Browse files
committed
cleanup
1 parent 148c057 commit eb4d4e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/main/mpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int main(int argc, char* argv[])
5252
commands = sf_split(inp,axis,nodes,&jobs,ndim,n,argc,argv);
5353

5454
for (job=0; job < jobs; job++) {
55-
strncpy(cmdline,commands[job],SF_CMDLEN);
55+
memcpy(cmdline,commands[job],SF_CMDLEN);
5656
MPI_Send(cmdline, SF_CMDLEN, MPI_CHAR, job+1, 0, MPI_COMM_WORLD);
5757
}
5858

0 commit comments

Comments
 (0)