examples: fix a potential buffer overflow in the canvas example, triggered when BUFSIZ is smaller than 1000. Bug found and patch sent by Bastian Märkisch <bmaerkisch@web.de>.
examples: fix a potential buffer overflow in the canvas example, triggered
when BUFSIZ is smaller than 1000. Bug found and patch sent by Bastian
Märkisch <bmaerkisch@web.de>.

git-svn-id: 3f9eced0add15b5a9fa491ea3f7f263c10f60fd6@4848 92316355-f0b4-4df1-b90c-862c8a59935f

mcfiredrill/libcaca-old,mcfiredrill/libcaca-old,mcfiredrill/libcaca-old,mcfiredrill/libcaca-old,mcfiredrill/libcaca-old,mcfiredrill/libcaca-old,mcfiredrill/libcaca-old,mcfiredrill/libcaca-old,mcfiredrill/libcaca-old