diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2001-03-03 00:45:13 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2001-03-03 00:45:13 +0000 |
commit | d41accf670e39303ef3f594b8b2a408cc644722a (patch) | |
tree | 360d661b9287b910ab0d1a40e479d4da37f97498 /graphics/aalib/files/patch-ai | |
parent | Switch the ASM selection code to use CPUTYPE on -current, and hence (diff) |
Use random() because rand() is just too lame
Fix a potential buffer overflow I noticed while in here
Bump PORTREVISION
Diffstat (limited to 'graphics/aalib/files/patch-ai')
-rw-r--r-- | graphics/aalib/files/patch-ai | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/aalib/files/patch-ai b/graphics/aalib/files/patch-ai new file mode 100644 index 000000000000..f01765cc3b58 --- /dev/null +++ b/graphics/aalib/files/patch-ai @@ -0,0 +1,11 @@ +--- 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; |