SQLite

Check-in [17fcd3b015]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix an off-by-one error in printf.c (CVS 156)
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 17fcd3b01568e95224425b982fb77abd8b12191a
User & Date: drh 2000-10-17 01:31:23.000
Context
2000-10-17
01:35
Version 1.0.12 (CVS 491) (check-in: 7330218a91 user: drh tags: trunk)
01:31
Fix an off-by-one error in printf.c (CVS 156) (check-in: 17fcd3b015 user: drh tags: trunk)
2000-10-16
22:11
:-) (CVS 155) (check-in: 3dc7913dfc user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to VERSION.
1
1.0.11
|
1
1.0.12
Changes to src/printf.c.
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
        {
          int i, j, n, c;
          char *arg = va_arg(ap,char*);
          if( arg==0 ) arg = "(NULL)";
          for(i=n=0; (c=arg[i])!=0; i++){
            if( c=='\'' )  n++;
          }
          n += i;
          if( n>etBUFSIZE ){
            bufpt = zExtra = sqliteMalloc( n );
          }else{
            bufpt = buf;
          }
          for(i=j=0; (c=arg[i])!=0; i++){
            bufpt[j++] = c;







|







557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
        {
          int i, j, n, c;
          char *arg = va_arg(ap,char*);
          if( arg==0 ) arg = "(NULL)";
          for(i=n=0; (c=arg[i])!=0; i++){
            if( c=='\'' )  n++;
          }
          n += i + 1;
          if( n>etBUFSIZE ){
            bufpt = zExtra = sqliteMalloc( n );
          }else{
            bufpt = buf;
          }
          for(i=j=0; (c=arg[i])!=0; i++){
            bufpt[j++] = c;
Changes to www/changes.tcl.
13
14
15
16
17
18
19
20



21
22
23
24
25
26
27


proc chng {date desc} {
  puts "<DT><B>$date</B></DT>"
  puts "<DD><P><UL>$desc</UL></P></DD>"
}

chng {2000 Oct 16 (1.0.11)} {



<li>Added the <b>sqlite_interrupt()</b> interface.</li>
<li>In the shell, <b>sqlite_interrupt()</b> is invoked when the
    user presses Control-C</li>
<li>Fixed some instances where <b>sqlite_exec()</b> was
    returning the wrong error code.</li>
}








|
>
>
>







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30


proc chng {date desc} {
  puts "<DT><B>$date</B></DT>"
  puts "<DD><P><UL>$desc</UL></P></DD>"
}

chng {2000 Oct 16 (1.0.12)} {
<li>Fixed an off-by-one error that was causing a coredump in 
    the '%q' format directive of the new
    <b>sqlite_..._printf()</b> routines.</li>
<li>Added the <b>sqlite_interrupt()</b> interface.</li>
<li>In the shell, <b>sqlite_interrupt()</b> is invoked when the
    user presses Control-C</li>
<li>Fixed some instances where <b>sqlite_exec()</b> was
    returning the wrong error code.</li>
}