1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/games/q3cellshading/files/patch-code-q3_ui-ui_saveconfig.c
Alejandro Pulver ac2c14f932 - Update to version 1.32c (security patch, see below).
- Make portlint happy.
- Allow building the VM on PowerPC.
- Fix a typo in option detection code (&& -> ||).
- Fix 2 security vulnerabilities [1].

PR:		ports/98296
Submitted by:	alepulver (myself)
Approved by:	Linas Valiukas <shirshegsm@gmail.com> (maintainer)
Obtained from:	q3icculus (http://icculus.org/quake3/) [1]
Security:	CVE-2006-2082
2006-06-03 14:51:46 +00:00

12 lines
414 B
C

--- ./code/q3_ui/ui_saveconfig.c.orig Wed May 31 18:55:11 2006
+++ ./code/q3_ui/ui_saveconfig.c Wed May 31 19:08:05 2006
@@ -85,7 +85,7 @@
return;
}
- COM_StripExtension(saveConfig.savename.field.buffer, configname );
+ COM_StripExtension(saveConfig.savename.field.buffer, configname, sizeof(configname) );
trap_Cmd_ExecuteText( EXEC_APPEND, va( "writeconfig %s.cfg\n", configname ) );
UI_PopMenu();
}