libretro-tyrquake/common
Kevin Shanahan ee389ca9a3 common: make COM_StripExtension work in-place
Rather than needing external checks on the output buffer, or adding a
"max length" parameter and needing to check for overflow, etc., make
COM_StripExtension modify the existing string.

Callers updated as needed.

A personal note that I finally realised that snprintf always zero
terminates the output buffer! So that should tidy up existing code a
little more and makes it an even better replacement for strncpy in
almost every case.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-19 11:50:17 +10:30
..
alias_model.c model: tidy up player/eye model crc checking code 2012-12-14 09:47:31 +10:30
cd_bsd.c [PATCH] Add BSD CD audio support 2006-09-16 07:10:04 +09:30
cd_common.c common: constify COM_Parse and everything that follows... 2012-11-28 09:46:42 +10:30
cd_linux.c [PATCH] Add BSD CD audio support 2006-09-16 07:10:04 +09:30
cd_null.c [PATCH] Update null CD driver 2007-02-18 20:32:59 +10:30
cd_win.c [PATCH] Printf format/usage fixes 2007-10-01 22:39:39 +09:30
cmd.c cmd: make Cbuf_AddText accept printf formatted strings 2012-12-18 15:35:38 +10:30
common.c common: make COM_StripExtension work in-place 2012-12-19 11:50:17 +10:30
console.c draw: replace a couple of Draw_Char loops with Draw_String 2012-12-16 21:05:22 +10:30
crc.c Import v0.47 sources 2006-09-10 19:02:51 +09:30
cvar.c common: replace some use of SZ_Print with MSG_WriteString 2012-12-14 09:38:49 +10:30
d_draw16.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
d_draw.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
d_edge.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
d_fill.c Import v0.47 sources 2006-09-10 19:02:51 +09:30
d_init.c draw: make local cvars static in d_init.c 2012-11-14 16:08:39 +10:30
d_modech.c model: create a model loading helper 2012-11-18 18:32:30 +10:30
d_part.c [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
d_parta.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
d_polysa.S trivial: whitespace cleanup in d_polysa.S 2012-11-22 13:43:04 +10:30
d_polyse.c create helper macros for cache aligning pointers/arrays 2012-11-14 14:45:31 +10:30
d_scan.c [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
d_scana.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
d_sky.c trivial: Make some more drawing functions static 2011-12-28 11:35:06 +10:00
d_spr8.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
d_sprite.c model: create a model loading helper 2012-11-18 18:32:30 +10:30
d_surf.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
d_vars.c [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
d_varsa.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
draw.c [PATCH] Add input sanity check to Draw_TileClear 2008-06-09 20:56:24 +09:30
drawhulls.c [PATCH] Fix a few 32/64 bit warnings 2009-07-05 15:10:55 +09:30
gl_draw.c draw: replace a couple of Draw_Char loops with Draw_String 2012-12-16 21:05:22 +10:30
gl_mesh.c common: make COM_StripExtension work in-place 2012-12-19 11:50:17 +10:30
gl_rlight.c [PATCH] Cleanup dlight colour handling 2006-09-10 19:05:55 +09:30
gl_rmain.c common: replace two more temp buffers with va() 2012-12-14 09:56:49 +10:30
gl_rmisc.c common: make COM_StripExtension work in-place 2012-12-19 11:50:17 +10:30
gl_rsurf.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
gl_warp.c model: remove gl_model.h and use model.h everywhere 2012-11-19 13:22:30 +10:30
in_null.c Import v0.47 sources 2006-09-10 19:02:51 +09:30
in_sdl.c input: don't mess with key repeat handling in sdl driver 2012-12-18 14:36:21 +10:30
in_win.c input: fix hang on "Are you sure you want to start a new game?" with sdl 2012-12-08 07:04:13 +10:30
in_x11.c input: move X11 IN_Commands to in_x11.c 2012-12-09 18:14:33 +10:30
keys.c cmd: make Cbuf_AddText accept printf formatted strings 2012-12-18 15:35:38 +10:30
math.S build: allow qwsv to use x86 optimised assembly routines 2012-11-14 17:57:19 +10:30
mathlib.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
model.c trivial: use qmax for RadiusFromBounds() 2012-12-06 17:38:12 +10:30
nonintel.c Import v0.47 sources 2006-09-10 19:02:51 +09:30
pr_edict.c common: constify COM_Parse and everything that follows... 2012-11-28 09:46:42 +10:30
pr_exec.c [PATCH] Add gcc "format" attribute to our printf style functions 2007-10-01 22:39:38 +09:30
r_aclip.c model: move alias clipping function prototypes to header 2012-11-14 15:31:41 +10:30
r_aclipa.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
r_alias.c model: ugly viewent hack doesn't need to be so ugly 2012-11-25 18:21:17 +10:30
r_aliasa.S trivial: whitespace cleanup in r_aliasa.S 2012-11-22 13:40:17 +10:30
r_bsp.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
r_draw.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
r_drawa.S trivial: whitespace cleanup in r_drawa.S 2012-11-14 19:22:30 +10:30
r_edge.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
r_edgea.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
r_efrag.c render: remove paranoia check for world entity in R_AddEfrags 2012-11-25 17:59:50 +10:30
r_light.c Import v0.47 sources 2006-09-10 19:02:51 +09:30
r_main.c screen: factor out gl refdef vrect calculations, similar to sw renderer 2012-12-17 14:55:00 +10:30
r_misc.c model: merge modelgen.h files and fix #include fallout 2012-10-28 16:47:27 +10:30
r_model.c model: factor out interval selection code for models/sprites/skins 2012-11-22 13:32:18 +10:30
r_part.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
r_sky.c fix strict aliasing issues in r_sky.c 2012-11-02 18:39:39 +10:30
r_sprite.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
r_surf.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
r_vars.c [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
r_varsa.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
rb_tree.c Import v0.47 sources 2006-09-10 19:02:51 +09:30
screen.c trivial: cast data to correct type for CL_StartUpload 2012-12-18 13:15:52 +10:30
sdl_common.c Fix SDL.h includes. 2012-12-11 20:38:13 +10:30
shell.c [PATCH] Old completions cleanup, part 2 2006-09-10 19:12:34 +09:30
snd_dma.c sound: remind myself to look at soundtime wrap later 2012-12-02 14:16:39 +10:30
snd_mem.c sound: don't cast away const pointers when not needed 2012-12-02 14:22:13 +10:30
snd_mix.c snd: properly fix the signedness warning in snd_mix.c 2012-11-02 18:52:13 +10:30
snd_mixa.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
snd_null.c sound: fix missing symbols in the null sound driver 2012-10-24 20:53:56 +10:30
snd_oss.c sound: rename the oss sound driver source file 2012-12-09 19:00:35 +10:30
snd_sdl.c vid: update the sdl driver(s) to the SDL2 API 2012-12-08 07:34:49 +10:30
snd_sndio.c snd: Add OpenBSD sndio sound driver 2012-11-05 17:59:59 +10:30
snd_win.c [PATCH] Fix logic error with first time sound initialisation 2007-12-30 22:43:01 +10:30
sprite_model.c entities: push down constness of entities where possible 2012-11-25 15:49:46 +10:30
surf8.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
surf16.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
sv_move.c [PATCH] Move sv_move.c to common directory 2006-09-10 19:12:12 +09:30
sys_null.c sys: return a proper value from main() routines 2012-12-03 20:10:24 +10:30
sys_unix.c sys: rename the sys_linux source file 2012-12-09 19:02:30 +10:30
sys_win.c screen: rename block_drawing -> scr_block_drawing 2012-12-17 09:11:19 +10:30
sys_wina.S [PATCH] Replace id386 define 2006-09-10 19:14:02 +09:30
vid_glx.c gl: rip out support for OpenGL palettized textures 2012-12-11 12:47:19 +10:30
vid_null.c Import v0.47 sources 2006-09-10 19:02:51 +09:30
vid_sdl.c input: fix hang on new game screen for sdl/sgl on other platforms 2012-12-16 20:58:55 +10:30
vid_sgl.c input: fix hang on new game screen for sdl/sgl on other platforms 2012-12-16 20:58:55 +10:30
vid_wgl.c screen: rename block_drawing -> scr_block_drawing 2012-12-17 09:11:19 +10:30
vid_win.c screen: rename block_drawing -> scr_block_drawing 2012-12-17 09:11:19 +10:30
vid_x.c vid: set the window name properly on x11 2012-12-09 18:55:26 +10:30
wad.c trivial: remove whitespace between type and varable for casts 2012-11-16 12:59:49 +10:30
world.c model: remove gl_model.h and use model.h everywhere 2012-11-19 13:22:30 +10:30
worlda.S build: allow qwsv to use x86 optimised assembly routines 2012-11-14 17:57:19 +10:30
x11_core.c [PATCH] Dead code removal 2006-09-10 19:05:57 +09:30
zone.c zone: mark argument to Cache_Check as const 2012-12-02 14:22:46 +10:30