diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-06-25 16:05:57 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-06-25 16:05:57 (GMT) |
| commit | 174794c40e94ea63b8efecb7f524e67a348b3e50 (patch) | |
| tree | e73738b03469770046d3cb92fd5fcf395959aba3 /src/interface.c | |
| parent | 1dcefb2895eea8ea5e09e11f0f639d50693cfb96 (diff) | |
| download | powder-174794c40e94ea63b8efecb7f524e67a348b3e50.zip powder-174794c40e94ea63b8efecb7f524e67a348b3e50.tar.gz | |
Strip extension when saving
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c index f67bfe6..c7e325d90 100644 --- a/src/interface.c +++ b/src/interface.c @@ -5232,7 +5232,12 @@ int save_filename_ui(pixel *vid_buf) ed.str[0] = 0; if(svf_fileopen){ + char * dotloc = NULL; strncpy(ed.str, svf_filename, 255); + if(dotloc = strstr(ed.str, ".")) + { + dotloc[0] = 0; + } ed.cursor = strlen(ed.str); } |
