From 19c98d5f39cb7a19d2da54c552a61b70b83901d1 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Sat, 23 Dec 2017 10:18:50 -0500 Subject: [PATCH] I7000: Removed un-needed code in i701_sys.c --- I7000/i701_sys.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/I7000/i701_sys.c b/I7000/i701_sys.c index e411946..3d4acc0 100644 --- a/I7000/i701_sys.c +++ b/I7000/i701_sys.c @@ -171,7 +171,6 @@ sim_load(FILE * fileref, CONST char *cptr, CONST char *fnam, int flag) } } else if (match_ext(fnam, "oct")) { while (fgets(&buf[0], 160, fileref) != 0) { - buf[sizeof(buf)] = '\0'; for(p = &buf[0]; *p == ' ' || *p == '\t'; p++); /* Grab address */ for(addr = 0; *p >= '0' && *p <= '7'; p++) @@ -186,7 +185,6 @@ sim_load(FILE * fileref, CONST char *cptr, CONST char *fnam, int flag) } } else if (match_ext(fnam, "txt")) { while (fgets(&buf[0], 160, fileref) != 0) { - buf[sizeof(buf)] = '\0'; for(p = &buf[0]; *p == ' ' || *p == '\t'; p++); /* Grab address */ for(addr = 0; *p >= '0' && *p <= '7'; p++)