summaryrefslogtreecommitdiff
path: root/assembler.c
diff options
context:
space:
mode:
Diffstat (limited to 'assembler.c')
-rw-r--r--assembler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assembler.c b/assembler.c
index 5112dc5..e302218 100644
--- a/assembler.c
+++ b/assembler.c
@@ -29,7 +29,7 @@ int main(int argc; char* argv[]){
// DRAFTING PROG LOGIC
char c = 0;
char in[10];
-while((c != '\n') && (c != '\0')
+while((c != '\n') && (c != EOF)
c = getchar;
if(c == '#') c = '\n';
in[i] = c;