Ignore:
Timestamp:
Aug 27, 2010, 11:00:52 AM (11 years ago)
Author:
Silvan Scherrer
Message:

poppler update to 0.14.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/poppler/mypoppler/fofi/FoFiType1.cc

    r257 r461  
    1616// Copyright (C) 2005, 2008 Albert Astals Cid <aacid@kde.org>
    1717// Copyright (C) 2005 Kristian HÞgsberg <krh@redhat.com>
     18// Copyright (C) 2010 Jakub Wilk <ubanus@users.sf.net>
    1819//
    1920// To see a description of the changes please see the Changelog file that
     
    193194  char c;
    194195  int n, code, i, j;
     196  char *tokptr;
    195197
    196198  for (i = 1, line = (char *)file;
     
    203205      buf[255] = '\0';
    204206      if ((p = strchr(buf+9, '/')) &&
    205           (p = strtok(p+1, " \t\n\r"))) {
     207          (p = strtok_r(p+1, " \t\n\r", &tokptr))) {
    206208        name = copyString(p);
    207209      }
     
    271273          }
    272274        } else {
    273           if (strtok(buf, " \t") &&
    274               (p = strtok(NULL, " \t\n\r")) && !strcmp(p, "def")) {
     275          if (strtok_r(buf, " \t", &tokptr) &&
     276              (p = strtok_r(NULL, " \t\n\r", &tokptr)) && !strcmp(p, "def")) {
    275277            break;
    276278          }
Note: See TracChangeset for help on using the changeset viewer.