X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fcommon%2Fputs.c;h=b0ad5180f7e549f39b193d7f3777ea157f257f79;hb=85885001b133e2dc320b6f6459259afa69784ca8;hp=85b8cc315d3149592ef239c54fd0586cc6ee792e;hpb=44fd1082ae807a0b6b4046c65914e20a7e27101c;p=cc65 diff --git a/libsrc/common/puts.c b/libsrc/common/puts.c index 85b8cc315..b0ad5180f 100644 --- a/libsrc/common/puts.c +++ b/libsrc/common/puts.c @@ -14,7 +14,7 @@ /*****************************************************************************/ -/* Code */ +/* Code */ /*****************************************************************************/ @@ -25,9 +25,9 @@ int __fastcall__ puts (const char* s) /* Assume stdout is always open */ if (write (stdout->f_fd, s, strlen (s)) < 0 || - write (stdout->f_fd, &nl, 1) < 0) { - stdout->f_flags |= _FERROR; - return -1; + write (stdout->f_fd, &nl, 1) < 0) { + stdout->f_flags |= _FERROR; + return -1; } /* Done */