Skip to content

Commit

Permalink
fix to support spaces in dirs when calling drmemory
Browse files Browse the repository at this point in the history
  • Loading branch information
asmodehn committed Oct 24, 2013
1 parent 7a31928 commit 1d7a732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/praqma/drmemory/DrMemory.java
Expand Up @@ -87,7 +87,7 @@ public boolean accept( File file, String name ) {
}

public void start() throws IOException {
String cmd = drmemory + ( logDir != null ? " -logdir " + logDir : "" ) + " -batch" + ( quiet ? " -quiet" : "" ) + " -- " + application + " " + parameters;
String cmd = drmemory + ( logDir != null ? " -logdir \"" + logDir + "\"" : "" ) + " -batch" + ( quiet ? " -quiet" : "" ) + " -- \"" + application + "\" " + parameters;
logger.debug( "CMD: " + cmd );
CmdResult result = null;
try {
Expand Down

0 comments on commit 1d7a732

Please sign in to comment.