diff options
author | rahulp13 | 2020-05-29 20:09:38 +0530 |
---|---|---|
committer | rahulp13 | 2020-05-29 20:09:38 +0530 |
commit | ab1642936c210977eea25f6b57e208ecae3f26ef (patch) | |
tree | 92f82c1a47cc7ecd0bc3feca5bb82a468ee3608d | |
parent | eb0d0f10acea802310ee7218482c42ab9dd2e544 (diff) | |
download | nghdl-ab1642936c210977eea25f6b57e208ecae3f26ef.tar.gz nghdl-ab1642936c210977eea25f6b57e208ecae3f26ef.tar.bz2 nghdl-ab1642936c210977eea25f6b57e208ecae3f26ef.zip |
removed reading of newline character
-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++; } |