fixed a few buffer overflow errors

This commit is contained in:
David Anderson 2006-03-30 00:13:38 +00:00
parent 16e53eded8
commit ab443e8254

View File

@ -287,7 +287,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
{ {
new file[32] new file[32]
format(file, 32, "misc/%s", g_Sounds[a]) format(file, 31, "misc/%s", g_Sounds[a])
play_sound(file) play_sound(file)
} }
} }
@ -415,8 +415,8 @@ public client_death(killer, victim, wpnindex, hitplace, TK)
{ {
new killer_name[32], victim_name[32] new killer_name[32], victim_name[32]
get_user_name(killer, killer_name, 32) get_user_name(killer, killer_name, 31)
get_user_name(victim, victim_name, 32) get_user_name(victim, victim_name, 31)
set_hudmessage(255, 100, 100, -1.0, 0.25, 1, 6.0, 6.0, 0.5, 0.15, -1) set_hudmessage(255, 100, 100, -1.0, 0.25, 1, 6.0, 6.0, 0.5, 0.15, -1)