~ubuntu-branches/ubuntu/utopic/libxpm/utopic

« back to all changes in this revision

Viewing changes to src/data.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2007-08-25 10:50:50 UTC
  • mfrom: (1.1.4 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20070825105050-xbytdxkw7wuclhca
Tags: 1:3.5.7-1
* New upstream release.
* Add the upstream URL to debian/copyright.
* Use binary:Version instead of the deprecated Source-Version.
* Add myself to uploaders, and remove Branden with his permission.

Show diffs side-by-side

added added

removed removed

Lines of Context:
422
422
            if (!l)
423
423
                return (XpmFileInvalid);
424
424
            buf[l] = '\0';
425
 
            ptr = rindex(buf, '_');
 
425
            ptr = strrchr(buf, '_');
426
426
            if (!ptr || strncmp("_format", ptr, l - (ptr - buf)))
427
427
                return XpmFileInvalid;
428
428
            /* this is definitely an XPM 1 file */