Fossil SCM
Cast strlen() to int when used as a printf() argument.
Commit
5fa4dfc28693c02ac0bd301bb18fd6a8e0b24c55
Parent
6b76effa924709a…
1 file changed
+1
-1
+1
-1
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -152,11 +152,11 @@ | ||
| 152 | 152 | free(zBr); |
| 153 | 153 | printf("committer"); |
| 154 | 154 | print_person(zUser); |
| 155 | 155 | printf(" %lld +0000\n", secondsSince1970); |
| 156 | 156 | if( zComment==0 ) zComment = "null comment"; |
| 157 | - printf("data %d\n%s\n", strlen(zComment), zComment); | |
| 157 | + printf("data %d\n%s\n", (int)strlen(zComment), zComment); | |
| 158 | 158 | p = manifest_get(ckinId, CFTYPE_ANY); |
| 159 | 159 | zFromType = "from"; |
| 160 | 160 | for(i=0; i<p->nParent; i++){ |
| 161 | 161 | int pid = fast_uuid_to_rid(p->azParent[i]); |
| 162 | 162 | if( pid==0 || !bag_find(&vers, pid) ) continue; |
| 163 | 163 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -152,11 +152,11 @@ | |
| 152 | free(zBr); |
| 153 | printf("committer"); |
| 154 | print_person(zUser); |
| 155 | printf(" %lld +0000\n", secondsSince1970); |
| 156 | if( zComment==0 ) zComment = "null comment"; |
| 157 | printf("data %d\n%s\n", strlen(zComment), zComment); |
| 158 | p = manifest_get(ckinId, CFTYPE_ANY); |
| 159 | zFromType = "from"; |
| 160 | for(i=0; i<p->nParent; i++){ |
| 161 | int pid = fast_uuid_to_rid(p->azParent[i]); |
| 162 | if( pid==0 || !bag_find(&vers, pid) ) continue; |
| 163 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -152,11 +152,11 @@ | |
| 152 | free(zBr); |
| 153 | printf("committer"); |
| 154 | print_person(zUser); |
| 155 | printf(" %lld +0000\n", secondsSince1970); |
| 156 | if( zComment==0 ) zComment = "null comment"; |
| 157 | printf("data %d\n%s\n", (int)strlen(zComment), zComment); |
| 158 | p = manifest_get(ckinId, CFTYPE_ANY); |
| 159 | zFromType = "from"; |
| 160 | for(i=0; i<p->nParent; i++){ |
| 161 | int pid = fast_uuid_to_rid(p->azParent[i]); |
| 162 | if( pid==0 || !bag_find(&vers, pid) ) continue; |
| 163 |