Imported Upstream version 3.3.1
[debian/amanda] / oldrecover-src / uscan.c
index 923f357e5236b3277c1cc8ea77e36636284e5f9e..6e02e6266612fc4eaea7f664f355c64b81ddbaa2 100644 (file)
@@ -679,7 +679,7 @@ static int input (void );
 /* This used to be an fputs(), but since the string might contain NUL's,
  * we now use fwrite().
  */
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
 #endif
 
 /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,