Fossil SCM
Fix an issue with makeheaders that causes problems for windows when full pathnames are use with a colon in the device name.
Commit
11285096466c0883f2aa1280c59e7fa29aed7437
Parent
82d741db3e82900…
1 file changed
+1
-1
+1
-1
| --- src/makeheaders.c | ||
| +++ src/makeheaders.c | ||
| @@ -3066,11 +3066,11 @@ | ||
| 3066 | 3066 | */ |
| 3067 | 3067 | if( zSrc[nSrc]==':' ){ |
| 3068 | 3068 | int nHdr; |
| 3069 | 3069 | char *zHdr; |
| 3070 | 3070 | zHdr = &zSrc[nSrc+1]; |
| 3071 | - for(nHdr=0; zHdr[nHdr] && zHdr[nHdr]!=':'; nHdr++){} | |
| 3071 | + for(nHdr=0; zHdr[nHdr]; nHdr++){} | |
| 3072 | 3072 | pFile->zHdr = StrDup(zHdr,nHdr); |
| 3073 | 3073 | } |
| 3074 | 3074 | |
| 3075 | 3075 | /* Look for any 'c' or 'C' in the suffix of the file name and change |
| 3076 | 3076 | ** that character to 'h' or 'H' respectively. If no 'c' or 'C' is found, |
| 3077 | 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] && 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 |