simon-git: puzzles (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sun Apr 30 19:05:47 BST 2017
TL;DR:
cefb84c Work around non-compliant sprintf().
9972f35 Nitpicks to the previous commit.
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2017-04-30 19:05:47
commit cefb84c2dbec914dc2733f776bb39d9055034c92
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=cefb84c2dbec914dc2733f776bb39d9055034c92;hp=2d333750272c3967cfd5cd3677572cddeaad5932
Author: Franklin Wei <me at fwei.tk>
Date: Fri Apr 28 19:48:36 2017 -0400
Work around non-compliant sprintf().
Rockbox's sprintf() lacks the ability to left-justify a string. Fixed
by adding a copy_left_justfied() function to misc.c.
This is a new version of this commit, as the previous version broke
saving!
midend.c | 4 +++-
misc.c | 13 +++++++++++++
puzzles.h | 5 +++++
3 files changed, 21 insertions(+), 1 deletion(-)
commit 9972f35b27cadd6a49f2ec57f2ec07e4fa373341
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=9972f35b27cadd6a49f2ec57f2ec07e4fa373341;hp=cefb84c2dbec914dc2733f776bb39d9055034c92
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Apr 30 18:40:41 2017 +0100
Nitpicks to the previous commit.
We enforce by assertion that the target buffer size is nonzero before
subtracting 1 from it; the call to fatal() is replaced by another
assert so that it will give clearer diagnostic information if it
fails; the variable holding the return value of strlen should be
size_t and its declaration should be in a C90-compatible location.
Finally, the reason why the function needs to be exist is clarified.
misc.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
More information about the tartarus-commits
mailing list