]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.cpp
some of pat's small modifications
[mothur.git] / engine.cpp
index 469ff404011283d81e8744d1072e59bdacdb656b..3108f3733d59078c9c5273b0a2a2f1c145cd33d0 100644 (file)
@@ -222,7 +222,7 @@ string Engine::getCommand()  {
                                
                                if(nextCommand != NULL) {  add_history(nextCommand);  } 
                                else{ //^D causes null string and we want it to quit mothur
-                                       strcpy(nextCommand, "quit"); 
+                                       nextCommand = strdup("quit");
                                        mout->mothurOut(nextCommand);
                                }