diff options
Diffstat (limited to 'apps/plugins/sokoban.c')
-rw-r--r-- | apps/plugins/sokoban.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c index 77813a5104..4e8263aadf 100644 --- a/apps/plugins/sokoban.c +++ b/apps/plugins/sokoban.c | |||
@@ -618,7 +618,7 @@ static bool read_levels(bool initialize) | |||
618 | buffered_boards.start = 0; | 618 | buffered_boards.start = 0; |
619 | 619 | ||
620 | if ((fd = rb->open(buffered_boards.filename, O_RDONLY)) < 0) { | 620 | if ((fd = rb->open(buffered_boards.filename, O_RDONLY)) < 0) { |
621 | rb->splash(HZ*2, "Unable to open %s", buffered_boards.filename); | 621 | rb->splashf(HZ*2, "Unable to open %s", buffered_boards.filename); |
622 | return false; | 622 | return false; |
623 | } | 623 | } |
624 | 624 | ||
@@ -930,7 +930,7 @@ static bool save(char *filename, bool solution) | |||
930 | 930 | ||
931 | if (filename[0] == '\0' || | 931 | if (filename[0] == '\0' || |
932 | (fd = rb->open(filename, O_WRONLY|O_CREAT|O_TRUNC)) < 0) { | 932 | (fd = rb->open(filename, O_WRONLY|O_CREAT|O_TRUNC)) < 0) { |
933 | rb->splash(HZ*2, "Unable to open %s", filename); | 933 | rb->splashf(HZ*2, "Unable to open %s", filename); |
934 | return false; | 934 | return false; |
935 | } | 935 | } |
936 | 936 | ||
@@ -965,7 +965,7 @@ static bool load(char *filename, bool silent) | |||
965 | 965 | ||
966 | if (filename[0] == '\0' || (fd = rb->open(filename, O_RDONLY)) < 0) { | 966 | if (filename[0] == '\0' || (fd = rb->open(filename, O_RDONLY)) < 0) { |
967 | if (!silent) | 967 | if (!silent) |
968 | rb->splash(HZ*2, "Unable to open %s", filename); | 968 | rb->splashf(HZ*2, "Unable to open %s", filename); |
969 | return false; | 969 | return false; |
970 | } | 970 | } |
971 | 971 | ||