diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2002-05-01 07:31:01 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2002-05-01 07:31:01 +0000 |
commit | fd115c271e60a06810ae5996499090e0be8f40cc (patch) | |
tree | 568740d0cea207ca6064766d3e64434609a9a7e4 /otherlibs/labltk | |
parent | c98047f62764eab650f7495e50d0e1d63d53ac88 (diff) |
be ISO-C compliant
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4766 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk')
-rw-r--r-- | otherlibs/labltk/tkanim/tkAnimGIF.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/otherlibs/labltk/tkanim/tkAnimGIF.c b/otherlibs/labltk/tkanim/tkAnimGIF.c index a606fc40f..af82aa607 100644 --- a/otherlibs/labltk/tkanim/tkAnimGIF.c +++ b/otherlibs/labltk/tkanim/tkAnimGIF.c @@ -290,8 +290,10 @@ FileReadGIF(interp, f, fileName, formatString) for(i=0; i<7; i++){ Tcl_DecrRefCount(argv[i]); } #else - char *argv[7] = {"image", "create", "photo", "-width", widthbuf, - "-height", heightbuf}; + char *argv[7] = {"image", "create", "photo", "-width", NULL, + "-height", NULL}; + argv[4] = widthbuf; + argv[6] = heightbuf; #ifdef TKANIM_DEBUG fprintf(stderr, "\n\t\timage creation (%s %s %s %s %s %s %s)", argv[0], argv[1], argv[2], argv[3], argv[4], argv[5], argv[6]); |