~ubuntu-branches/ubuntu/raring/libxfont/raring-security

« back to all changes in this revision

Viewing changes to src/fontfile/catalogue.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2008-03-07 13:32:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080307133243-oe2mgbme0mqtwihp
Tags: 1:1.3.2-1
* New upstream release
* Drop CVE-2008-0006.diff, included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
    while (entry = readdir(dir), entry != NULL)
157
157
    {
158
158
        snprintf(link, sizeof link, "%s/%s", path, entry->d_name);
159
 
        len = readlink(link, dest, sizeof dest);
 
159
        len = readlink(link, dest, sizeof dest - 1);
160
160
        if (len < 0)
161
161
            continue;
162
162