Mercurial > hg > octave-lyh
changeset 1215:c56c0565afd5
[project @ 1995-04-06 05:12:20 by jwe]
author | jwe |
---|---|
date | Thu, 06 Apr 1995 05:13:57 +0000 |
parents | 0bf4d2b7def4 |
children | 0ffb52e268d7 |
files | src/input.cc src/tc-rep.cc src/utils.cc |
diffstat | 3 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/input.cc +++ b/src/input.cc @@ -239,7 +239,7 @@ char *temp = 0; result[0] = 0; - while (c = *string++) + while ((c = *string++)) { if (c == '\\') { @@ -351,7 +351,8 @@ char *t_string; temp = strsave (host_name); - if (t_string = strchr (temp, '.')) + t_string = strchr (temp, '.'); + if (t_string); *t_string = '\0'; goto add_string;