patch-gram_y 717 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-gram_y,v 1.1 2017/05/12 20:27:25 naddy Exp $
  2. Index: gram.y
  3. --- gram.y.orig
  4. +++ gram.y
  5. @@ -968,7 +968,7 @@ command: S_LET var_or_range '=' e
  6. macrofd); }
  7. | S_EVAL e STRING '|' NUMBER
  8. { doeval($2, $3, currow, curcol,
  9. - $3); }
  10. + $5); }
  11. | S_SEVAL e { doseval($2, currow, curcol, macrofd); }
  12. | S_QUERY STRING STRING { doquery($2, $3, macrofd); }
  13. | S_QUERY STRING STRING '|' NUMBER
  14. @@ -1010,7 +1010,7 @@ command: S_LET var_or_range '=' e
  15. | S_PLUGOUT STRING '=' STRING
  16. { addplugin($2, $4, 'w'); }
  17. | PLUGIN { *line = '|';
  18. - sprintf(line + 1, $1);
  19. + sprintf(line + 1, "%s", $1);
  20. readfile(line, 0);
  21. scxfree($1); }
  22. | /* nothing */