Changeset 452 for libmpc/trunk/mpcenc/mpcenc.c
- Timestamp:
- 08/04/09 22:11:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/mpcenc/mpcenc.c
r435 r452 841 841 // if no Output-File is stated, set OutFile to InFile.mpc 842 842 if ( *OutputFile == NULL ) { 843 char * ext = rindex(*InputFile, '.'); // search for extension delimiter 843 844 strcpy ( *OutputFile = output, *InputFile ); 844 845 len = strlen ( output ); 845 if ( len > 4 && output[len-4] == '.')846 len -= 4;846 if (ext != 0 && (len - (ext - *InputFile)) < 7) // extension max size (5 chars) 847 len = ext - *InputFile; 847 848 strcpy (output+len, ".mpc"); 848 849 argc -= 1;
Note: See TracChangeset
for help on using the changeset viewer.