Fossil

Diff
Login

Differences From Artifact [49a234dc9b]:

To Artifact [31405cbbf3]:


606
607
608
609
610
611
612
613

614
615
616
617
618
619
620
621
622
623
624




625
626
627
628
629
630
631
606
607
608
609
610
611
612

613



614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632







-
+
-
-
-








+
+
+
+







        break;
      }
      case etROOT: {
        bufpt = g.zTop ? g.zTop : "";
        length = (int)strlen(bufpt);
        break;
      }
      case etSTRINGID: {
      case etSTRINGID:
        precision = 16;
        /* Fall through */
      }
      case etSTRING:
      case etDYNSTRING: {
        int limit = flag_alternateform ? va_arg(ap,int) : -1;
        bufpt = va_arg(ap,char*);
        if( bufpt==0 ){
          bufpt = "";
        }else if( xtype==etDYNSTRING ){
          zExtra = bufpt;
        }else if( xtype==etSTRINGID ){
          precision = 0;
          while( fossil_isdigit(bufpt[precision++]) ){};
          if( precision<10 ) precision=10;
        }
        length = StrNLen32(bufpt, limit);
        if( precision>=0 && precision<length ) length = precision;
        break;
      }
      case etBLOB: {
        int limit = flag_alternateform ? va_arg(ap, int) : -1;