1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-28 21:29:28 +00:00
freebsd-ports/graphics/aalib/files/patch-ai
Kris Kennaway d41accf670 Use random() because rand() is just too lame
Fix a potential buffer overflow I noticed while in here
Bump PORTREVISION
2001-03-03 00:45:13 +00:00

12 lines
282 B
Plaintext

--- aaprintf.c.orig Fri Mar 2 16:34:22 2001
+++ aaprintf.c Fri Mar 2 16:35:20 2001
@@ -6,7 +6,7 @@
char buf[1025];
int i;
va_start(args,fmt);
- i=vsprintf(buf,fmt,args);
+ i=vsnprintf(buf,sizeof(buf),fmt,args);
va_end(args);
aa_puts(c,x,y,attr,buf);
return i;