1
0
Fork 0

src/FDM/ExternalPipe/ExternalPipe.cxx: avoid gcc warning.

This commit is contained in:
Julian Smith 2020-06-14 18:16:25 +01:00
parent a00e9e571d
commit 50ef1cf337

View file

@ -184,9 +184,9 @@ static int write_binary( char cmd_type, FILE *pd, char *cmd, int len ) {
static int write_property( FILE *pd, char *cmd ) {
int len = strlen(cmd);
#ifdef HAVE_MKFIFO
int len = strlen(cmd);
char *buf = new char[len + 1];
memcpy( buf, cmd, len );