diff options
author | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-01 19:11:41 +0000 |
---|---|---|
committer | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-01 19:11:41 +0000 |
commit | 04bd71265a51eb3c842c45b332a45575a8660e60 (patch) | |
tree | 7c0baf34c197b31f6b14229caa0d35aa4918b65c /src/texture.c | |
parent | 214df94a1478591f737d5a41c65af0b26e8fa35b (diff) |
Multiple portability fixes
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@57 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/texture.c')
-rw-r--r-- | src/texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/texture.c b/src/texture.c index b2aba03..36f6a8b 100644 --- a/src/texture.c +++ b/src/texture.c @@ -34,11 +34,11 @@ void texture_load(RenderContext *ctx, char *name) { png_bytep *row_pointers; unsigned int x; unsigned int y; - char tmp[64]; + char tmp[128]; uint8_t *texels; /* Open file */ - snprintf(tmp, 63, "%s/textures/%s.png", DATADIR, name); + snprintf(tmp, 127, "%s/textures/%s.png", DATADIR, name); fh = fopen(tmp, "rb"); if ( !fh ) { fprintf(stderr, "Couldn't open texture file '%s'\n", tmp); |