Skip to content

Commit

Permalink
Fix a *printf() format string on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Dec 11, 2023
1 parent e2a3ce9 commit 5896aea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# keypress (development version)

- Fix a `*printf()` format string on Windows.

# keypress 1.3.0

- Allow turning echo off for non-blocking Linux and macOS terminals
Expand Down
2 changes: 1 addition & 1 deletion src/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ SEXP r_throw_system_error(const char *func, const char *filename, int line,
va_start(args, msg);
vsnprintf(errorbuf, ERRORBUF_SIZE, msg, args);
va_end(args);
error("%s (system error %d, %s) @%s:%d (%s)", errorbuf, errorcode,
error("%s (system error %ld, %s) @%s:%d (%s)", errorbuf, errorcode,
realsysmsg, filename, line, func);
return R_NilValue;
}
Expand Down

0 comments on commit 5896aea

Please sign in to comment.