Fossil SCM

Fix an issue with makeheaders that causes problems for windows when full pathnames are use with a colon in the device name.

drh 2011-06-16 23:12 trunk
Commit 11285096466c0883f2aa1280c59e7fa29aed7437
1 file changed +1 -1
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -3066,11 +3066,11 @@
30663066
*/
30673067
if( zSrc[nSrc]==':' ){
30683068
int nHdr;
30693069
char *zHdr;
30703070
zHdr = &zSrc[nSrc+1];
3071
- for(nHdr=0; zHdr[nHdr] && zHdr[nHdr]!=':'; nHdr++){}
3071
+ for(nHdr=0; zHdr[nHdr]; nHdr++){}
30723072
pFile->zHdr = StrDup(zHdr,nHdr);
30733073
}
30743074
30753075
/* Look for any 'c' or 'C' in the suffix of the file name and change
30763076
** that character to 'h' or 'H' respectively. If no 'c' or 'C' is found,
30773077
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -3066,11 +3066,11 @@
3066 */
3067 if( zSrc[nSrc]==':' ){
3068 int nHdr;
3069 char *zHdr;
3070 zHdr = &zSrc[nSrc+1];
3071 for(nHdr=0; zHdr[nHdr] && zHdr[nHdr]!=':'; nHdr++){}
3072 pFile->zHdr = StrDup(zHdr,nHdr);
3073 }
3074
3075 /* Look for any 'c' or 'C' in the suffix of the file name and change
3076 ** that character to 'h' or 'H' respectively. If no 'c' or 'C' is found,
3077
--- src/makeheaders.c
+++ src/makeheaders.c
@@ -3066,11 +3066,11 @@
3066 */
3067 if( zSrc[nSrc]==':' ){
3068 int nHdr;
3069 char *zHdr;
3070 zHdr = &zSrc[nSrc+1];
3071 for(nHdr=0; zHdr[nHdr]; nHdr++){}
3072 pFile->zHdr = StrDup(zHdr,nHdr);
3073 }
3074
3075 /* Look for any 'c' or 'C' in the suffix of the file name and change
3076 ** that character to 'h' or 'H' respectively. If no 'c' or 'C' is found,
3077

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button