aboutsummaryrefslogtreecommitdiff
path: root/simon/debug.cpp
diff options
context:
space:
mode:
authorTravis Howell2003-12-11 09:29:56 +0000
committerTravis Howell2003-12-11 09:29:56 +0000
commit898d5f2647084c65cd0df1bc50e661031a8bf87d (patch)
treef70790c4709b3e4a96724e272d76cb1b5c7a17cf /simon/debug.cpp
parentbc00922990e6f51c43d0bc396e1d2841fa017424 (diff)
downloadscummvm-rg350-898d5f2647084c65cd0df1bc50e661031a8bf87d.tar.gz
scummvm-rg350-898d5f2647084c65cd0df1bc50e661031a8bf87d.tar.bz2
scummvm-rg350-898d5f2647084c65cd0df1bc50e661031a8bf87d.zip
No need for buffers that large.
svn-id: r11575
Diffstat (limited to 'simon/debug.cpp')
-rw-r--r--simon/debug.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/simon/debug.cpp b/simon/debug.cpp
index fffc53efd7..bd4bfab72e 100644
--- a/simon/debug.cpp
+++ b/simon/debug.cpp
@@ -354,7 +354,7 @@ void dump_bitmap(const char *filename, byte *offs, int w, int h, int flags, cons
}
void SimonEngine::dump_single_bitmap(int file, int image, byte *offs, int w, int h, byte base) {
- char buf[255];
+ char buf[40];
struct stat statbuf;
#if defined(MACOS_CARBON)
@@ -403,12 +403,6 @@ void SimonEngine::dump_vga_bitmaps(byte *vga, byte *vga1, int res) {
pal_load(pal, vga1, 5, 3);
}
- {
- char buf[255], buf2[255];
- sprintf(buf, "bmp_%d", res);
- mkdir(buf2);
- }
-
int width, height, flags;
i = 538;
@@ -431,7 +425,7 @@ void SimonEngine::dump_vga_bitmaps(byte *vga, byte *vga1, int res) {
/* dump bitmap */
{
- char buf[255];
+ char buf[40];
#if defined(MACOS_CARBON)
sprintf(buf, ":dumps:Res%d_Image%d.bmp", res, i);
#else