Showing the changes to src/core/chuck_shell.cpp (1 of 2 files). Show all
Unified · Split
| @@ -602,7 +602,8 @@ void Chuck_Shell::do_code( string & code, string & out, string command ) · 601 unmodified lines | |||
| 602 | #if defined(__PLATFORM_LINUX__) || defined(__MACOSX_CORE__) | 602 | #if defined(__PLATFORM_LINUX__) || defined(__MACOSX_CORE__) |
| 603 | char tmp_dir[] = "/tmp"; | 603 | char tmp_dir[] = "/tmp"; |
| 604 | char * tmp_filepath = new char [32]; | 604 | char * tmp_filepath = new char [32]; |
| 605 | strncpy( tmp_filepath, "/tmp/chuck_file.XXXXXX", 32 ); | 605 | // 1.4.0.2: changed chuck_file.XXXXXX to chuck_shell.XXXXXX |
| 606 | strncpy( tmp_filepath, "/tmp/chuck_shell.XXXXXX", 32 ); | ||
| 606 | int fd = mkstemp( tmp_filepath ); | 607 | int fd = mkstemp( tmp_filepath ); |
| 607 | if( fd == -1 ) | 608 | if( fd == -1 ) |
| 608 | { | 609 | { |