[xiph-cvs] cvs commit: vorbis-tools/oggenc platform.c
Michael Smith
msmith at xiph.org
Thu Jan 31 04:00:22 PST 2002
msmith 02/01/31 04:00:22
Modified: oggenc platform.c
Log:
Fix for #147 - win32 directory creation was wrong if a drive was specified.
Revision Changes Path
1.8 +4 -0 vorbis-tools/oggenc/platform.c
Index: platform.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/platform.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- platform.c 2002/01/29 04:39:25 1.7
+++ platform.c 2002/01/31 12:00:22 1.8
@@ -123,6 +123,10 @@
char *segment = malloc(strlen(fn)+1);
start = fn;
+#ifdef _WIN32
+ if(strlen(fn) >= 3 && isalpha(fn[0] && fn[1]==':'))
+ start = start+2;
+#endif
while((end = strpbrk(start+1, PATH_SEPS)) != NULL)
{
<p><p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list