mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
49576030c2
- Add DOCS Option - Support STAGEDIR, change DESTDIR - Change Desktop entry file - Disable all warnings with -w - Recreate patches with make makepatch Approved by: pawel / wg (mentors, implicit)
21 lines
513 B
C
21 lines
513 B
C
--- ./dialog.h.orig 2001-07-20 17:08:10.000000000 +0200
|
|
+++ ./dialog.h 2013-12-28 11:39:16.000000000 +0100
|
|
@@ -92,7 +92,7 @@
|
|
va_list ap;
|
|
|
|
va_start(ap, fmt);
|
|
- vsprintf(errbuf, fmt, ap);
|
|
+ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
|
|
va_end(ap);
|
|
errstr = errbuf;
|
|
}
|
|
@@ -878,7 +878,7 @@
|
|
if ( entry->text ) {
|
|
Fontserv->FreeText(entry->text);
|
|
}
|
|
- sprintf(buf, "%d", *entry->variable);
|
|
+ snprintf(buf, sizeof(buf), "%d", *entry->variable);
|
|
|
|
if ( entry->hilite ) {
|
|
clear = Fg;
|