freebsd-ports/japanese/kon2-16dot/files/patch-src_errors.c
Daichi GOTO d5110194a5 - fixed the building on amd64
- fixed the building on 9+
 - clean-up patches

PR:		167724
Submitted by:	Masamichi Takatsu <taka2@doga.co.jp>
2012-05-09 19:28:24 +00:00

11 lines
318 B
C

--- src/errors.c.orig 1997-01-24 09:36:22.000000000 +0900
+++ src/errors.c 2012-05-10 00:14:28.922550440 +0900
@@ -48,7 +48,7 @@
vfprintf(stderr, format, args);
} else {
VtEmu(head, strlen(head));
- vsprintf(buf, format, args);
+ vsnprintf(buf, sizeof(buf), format, args);
VtEmu(buf, strlen(buf));
}
}