a6dbfe0bc9
Submitted by Dan Weeks <danimal@danimal.org>. Xwrits reminds you to take wrist breaks for prevention or management of repetitive stress injuries.
13 lines
541 B
Plaintext
13 lines
541 B
Plaintext
$OpenBSD: patch-gifread_c,v 1.1.1.1 2001/04/04 20:29:31 naddy Exp $
|
|
--- gifread.c.orig Mon Mar 19 20:29:27 2001
|
|
+++ gifread.c Mon Mar 19 20:29:29 2001
|
|
@@ -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;
|
|
}
|