From 191ae9ea90acfdd0a9eebcda22d11a11f21848c3 Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 3 Aug 2012 20:42:22 +0200 Subject: [PATCH] cleanup, char 0 --- src/frontend/inp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index f9bb24b3f..5b264aa1d 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -112,7 +112,7 @@ upper(char *string) if (string) { strncpy(buf, string, BSIZE_SP - 1); - buf[BSIZE_SP - 1] = 0; + buf[BSIZE_SP - 1] = '\0'; inp_casefix(buf); } else { strcpy(buf, ""); @@ -831,7 +831,7 @@ inp_dodeck( do { q =strchr(p, '\n'); if (q) - *q = 0; + *q = '\0'; if (p == dd->li_error) { if (strstr(dd->li_line, ".model"))