Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix a potential segfault in the URL shortener of the WWW timeline logic. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
d66718f2e88698a4d5e524fa9ca3cc2a |
| User & Date: | drh 2010-01-05 15:01:34.000 |
Context
|
2010-01-05
| ||
| 21:28 | Added the "Thoughts On The Design Of Fossil" document in answer to recent criticisms and critiques. ... (check-in: a6303982b0 user: drh tags: trunk) | |
| 15:01 | Fix a potential segfault in the URL shortener of the WWW timeline logic. ... (check-in: d66718f2e8 user: drh tags: trunk) | |
|
2010-01-04
| ||
| 13:53 | Add a copyright release form template. ... (check-in: d2bec5a1d4 user: drh tags: trunk) | |
Changes
Changes to src/timeline.c.
| ︙ | ︙ | |||
33 34 35 36 37 38 39 |
** Shorten a UUID so that is the minimum length needed to contain
** at least one digit in the range 'a'..'f'. The minimum length is 10.
*/
static void shorten_uuid(char *zDest, const char *zSrc){
int i;
for(i=0; i<10 && zSrc[i]<='9'; i++){}
memcpy(zDest, zSrc, 10);
| | | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
** Shorten a UUID so that is the minimum length needed to contain
** at least one digit in the range 'a'..'f'. The minimum length is 10.
*/
static void shorten_uuid(char *zDest, const char *zSrc){
int i;
for(i=0; i<10 && zSrc[i]<='9'; i++){}
memcpy(zDest, zSrc, 10);
if( i==10 && zSrc[i] ){
do{
zDest[i] = zSrc[i];
i++;
}while( zSrc[i-1]<='9' );
}else{
i = 10;
}
|
| ︙ | ︙ |