cleanup, char 0
This commit is contained in:
parent
5a69b9efc4
commit
191ae9ea90
|
|
@ -112,7 +112,7 @@ upper(char *string)
|
||||||
|
|
||||||
if (string) {
|
if (string) {
|
||||||
strncpy(buf, string, BSIZE_SP - 1);
|
strncpy(buf, string, BSIZE_SP - 1);
|
||||||
buf[BSIZE_SP - 1] = 0;
|
buf[BSIZE_SP - 1] = '\0';
|
||||||
inp_casefix(buf);
|
inp_casefix(buf);
|
||||||
} else {
|
} else {
|
||||||
strcpy(buf, "<null>");
|
strcpy(buf, "<null>");
|
||||||
|
|
@ -831,7 +831,7 @@ inp_dodeck(
|
||||||
do {
|
do {
|
||||||
q =strchr(p, '\n');
|
q =strchr(p, '\n');
|
||||||
if (q)
|
if (q)
|
||||||
*q = 0;
|
*q = '\0';
|
||||||
|
|
||||||
if (p == dd->li_error) {
|
if (p == dd->li_error) {
|
||||||
if (strstr(dd->li_line, ".model"))
|
if (strstr(dd->li_line, ".model"))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue