~xnox/ubuntu/natty/htmldoc/fix-ftbfs

« back to all changes in this revision

Viewing changes to htmldoc/ps-pdf.cxx

  • Committer: Dmitrijs Ledkovs
  • Date: 2010-12-16 23:13:23 UTC
  • Revision ID: dmitrij.ledkov@ubuntu.com-20101216231323-zftnsgu81l3u68vr
* Fix FTBFS on natty (LP: #687976):
  - Added X11 to libs
  - Make subdir makes fail the build
  - Use memcpy instead of strcpy, fixes FTBFS with FORTIFY (LP: #688730),
    patch from openSUSE same license as the package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8615
8615
          return (NULL);
8616
8616
        }
8617
8617
        // Safe because buffer is allocated...
8618
 
        strcpy((char *)r->data.text.buffer, (char *)data);
 
8618
        memcpy((char *)r->data.text.buffer, data, strlen ((char *)data) + 1);
8619
8619
        get_color(_htmlTextColor, r->data.text.rgb);
8620
8620
        break;
8621
8621
    case RENDER_IMAGE :