diff options
Diffstat (limited to 'src/model_generation.py')
-rw-r--r-- | src/model_generation.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model_generation.py b/src/model_generation.py index dcb0788..eecd716 100644 --- a/src/model_generation.py +++ b/src/model_generation.py @@ -267,9 +267,9 @@ class ModelGeneration: fptr = fopen(ip_filename, "r"); if (fptr) { - char line[20]; - int line_port; - while(fscanf(fptr, "%s %d\\n", line, &line_port) == 2) { + char line_ip[20]; + int line_port; + while(fscanf(fptr, "%s %d", line_ip, &line_port) == 2) { ip_count++; } |