diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-05-14 15:56:03 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-05-14 15:56:03 +0000 |
commit | a1c768e64b0301a6e6a7a186048a79b6d0fb6d78 (patch) | |
tree | 07c9046a51de431c66e21914c423c73e9d62f00c /Build/source/texk/dvipng/pk.c | |
parent | 6f0a0723e2f1a5fdbb91158be02f8794f704d278 (diff) |
dvipng-1.10
git-svn-id: svn://tug.org/texlive/trunk@8139 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipng/pk.c')
-rw-r--r-- | Build/source/texk/dvipng/pk.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/Build/source/texk/dvipng/pk.c b/Build/source/texk/dvipng/pk.c index 6eb7be92530..471ba11d34b 100644 --- a/Build/source/texk/dvipng/pk.c +++ b/Build/source/texk/dvipng/pk.c @@ -4,22 +4,21 @@ Part of the dvipng distribution - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301 USA. + You should have received a copy of the GNU Lesser General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/>. - Copyright (C) 2002-2005 Jan-Åke Larsson + Copyright (C) 2002-2008 Jan-Åke Larsson ************************************************************************/ @@ -323,7 +322,7 @@ void InitPK(struct font_entry * tfontp) Message(BE_VERBOSE,"<%s>", tfontp->name); if (MmapFile(tfontp->name,&(tfontp->fmmap))) Fatal("font file %s unusable", tfontp->name); - position=(unsigned char*)tfontp->fmmap.dp_mmap; + position=(unsigned char*)tfontp->fmmap.data; if (tfontp->fmmap.size < 2 || tfontp->fmmap.size < 3+*(position+2)+16) Fatal("PK file %s ends prematurely",tfontp->name); if (*position++ != PK_PRE) @@ -353,7 +352,7 @@ void InitPK(struct font_entry * tfontp) position = skip_specials(position); while (*position != PK_POST) { DEBUG_PRINT(DEBUG_PK,("\n @%ld PK CHAR:\t%d", - (long)position - (long)tfontp->fmmap.dp_mmap, *position)); + (long)position - (long)tfontp->fmmap.data, *position)); if ((tcharptr = malloc(sizeof(struct char_entry))) == NULL) Fatal("cannot malloc space for char_entry"); tcharptr->flag_byte = *position; |