summaryrefslogtreecommitdiff
path: root/src/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.cc')
-rw-r--r--src/debug.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.cc b/src/debug.cc
index ac0daec..1f5388b 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -123,7 +123,7 @@ void gpgpu_debug()
} else if( !strcmp(tok,"q") || !strcmp(tok,"quit") ) {
printf("\nreally quit GPGPU-Sim (y/n)?\n");
fgets(line,1024,stdin);
- tok = strtok(NULL," \t\n");
+ tok = strtok(line," \t\n");
if( !strcmp(tok,"y") ) {
exit(0);
} else {