Mercurial > pidgin.yaz
view libpurple/protocols/novell/nmrtf.h @ 17729:0a4238600947
Fixed recognition of the extension of certain JPG files. The 4th character may be anything between e0 and ef; the first 3 should be sufficient for a magic number, though a more 'complete' solution would verify that (e0 <= data[3] <= ef). Also, added recognition of TIF files (magic number: MM or II). Refs #725, which gave examples of several JPGs with (data[3] == e1).
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Tue, 05 Jun 2007 12:04:09 +0000 |
parents | 5fe8042783c1 |
children | 44b4e8bd759b |
line wrap: on
line source
/* * nmrtf.h * * Copyright (c) 2004 Novell, Inc. All Rights Reserved. * * 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; version 2 of the License. * * 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. * * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef __NMRTF_H__ #define __NMRTF_H__ typedef struct _NMRtfContext NMRtfContext; NMRtfContext *nm_rtf_init(void); char *nm_rtf_strip_formatting(NMRtfContext *ctx, const char *input); void nm_rtf_deinit(NMRtfContext *ctx); #endif