2002-05-10 07:16:03 -04:00
|
|
|
$OpenBSD: patch-gifread_c,v 1.2 2002/05/10 11:16:03 naddy Exp $
|
|
|
|
--- gifread.c.orig Wed May 8 18:51:08 2002
|
|
|
|
+++ gifread.c Wed May 8 18:52:01 2002
|
2001-04-04 16:29:30 -04:00
|
|
|
@@ -828,7 +828,7 @@ read_gif(Gif_Reader *grr, int read_flags
|
|
|
|
default:
|
|
|
|
if (!unknown_block_type) {
|
|
|
|
char buf[256];
|
|
|
|
- sprintf(buf, "unknown block type %d at file offset %d", block, gifgetoffset(grr) - 1);
|
|
|
|
+ snprintf(buf, sizeof(buf), "unknown block type %d at file offset %d", block, gifgetoffset(grr) - 1);
|
|
|
|
gif_read_error(&gfc, buf);
|
|
|
|
unknown_block_type = 1;
|
|
|
|
}
|