diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-03-25 12:40:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-03-25 12:40:06 +0300 |
commit | 34494425fa484c98199b7b1fadc5cbaa894473f6 (patch) | |
tree | 00cbf55deca545ef10b235a0a2de4162e5570fc7 /source/blender/src/playanim.c | |
parent | 8c46419f3b77d474a78ac05819f51b20b4d4fac2 (diff) |
Raise the limit for long filenames.
a few times peach guys have had the play button fail with "stack smash" warnings in the terminal and play button not working.
This fixes a reproducible crash where blender would segfault when pressing play on long filenames, and hopefully fixes odd user reports where pressing play quits X11 or reboots their system.
Diffstat (limited to 'source/blender/src/playanim.c')
-rw-r--r-- | source/blender/src/playanim.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/playanim.c b/source/blender/src/playanim.c index 1c3e1d66148..1161dc8a616 100644 --- a/source/blender/src/playanim.c +++ b/source/blender/src/playanim.c @@ -202,7 +202,7 @@ static void toscreen(Pict *picture, struct ImBuf *ibuf) pupdate_time(); if(picture && (qualN & (SHIFT|LMOUSE))) { - char str[256]; + char str[512]; cpack(-1); glRasterPos2f(0.02f, 0.03f); sprintf(str, "%s | %.2f frames/s\n", picture->name, 1.0 / swaptime); @@ -215,12 +215,12 @@ static void toscreen(Pict *picture, struct ImBuf *ibuf) static void build_pict_list(char * first, int totframes) { int size,pic,file; - char *mem, name[256]; + char *mem, name[512]; short val; struct pict * picture = 0; struct ImBuf *ibuf = 0; int count = 0; - char str[100]; + char str[512]; struct anim * anim; if (IMB_isanim(first)) { @@ -338,7 +338,7 @@ void playanim(int argc, char **argv) { struct ImBuf *ibuf = 0; struct pict *picture = 0; - char name[256]; + char name[512]; short val = 0, go = TRUE, ibufx = 0, ibufy = 0; int event, stopped = FALSE, maxwinx, maxwiny; short /* c233 = FALSE, */ /* yuvx = FALSE, */ once = FALSE, sstep = FALSE, wait2 = FALSE, /* resetmap = FALSE, */ pause = 0; |