~ubuntu-branches/ubuntu/lucid/lighttpd/lucid-security

« back to all changes in this revision

Viewing changes to src/http_chunk.c

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-06-06 15:53:28 UTC
  • mfrom: (6.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090606155328-6pr6j08kk4rdf8rz
Tags: 1.4.22-1ubuntu1
* Merge from debian unstable (LP: #384367), remaining changes:
  - debian/control: Depend on lsb (>= 3.2-14), which has the status_of_proc() 
    function; libgamin-dev rather than libfam-dev to fix startup warning.
  - debian/init.d: Add the 'status' action, clean environment; Check syntax 
    during start/reload/restart/force-reload.
  - debian/rules: set DEB_UPDATE_RCD_PARAMS to "defaults 91 09" to not start 
    lighty before apache2 but in the same runlevel with the same priority;
    Make sure that upgrades succeed, even if we can't restart lighttpd.
  - debian/index.html: s/Debian/Ubuntu/g branding on the default page.
  - Added a UFW profile set: 
    + debian/lighttpd.dirs: added etc/ufw/applications.d
    + debian/rules: install the ufw profile.
    + debian/control: Suggests on ufw.
* debian/patches/fix-conf-doc.patch: Update headers to match package version
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        b = srv->tmp_chunk_len;
28
28
 
29
29
        if (len == 0) {
30
 
                buffer_copy_string(b, "0");
 
30
                buffer_copy_string_len(b, CONST_STR_LEN("0"));
31
31
        } else {
32
32
                for (i = 0; i < 8 && len; i++) {
33
33
                        len >>= 4;
44
44
                b->ptr[b->used++] = '\0';
45
45
        }
46
46
 
47
 
        buffer_append_string(b, "\r\n");
 
47
        buffer_append_string_len(b, CONST_STR_LEN("\r\n"));
48
48
        chunkqueue_append_buffer(con->write_queue, b);
49
49
 
50
50
        return 0;