~ubuntu-branches/ubuntu/quantal/flac/quantal

« back to all changes in this revision

Viewing changes to src/plugin_winamp2/in_flac.c

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-12-06 16:57:20 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206165720-ldii5tm8dq6zxg0l
Tags: 1.2.1-1ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: xmms-dev dropped to allow xmms to move to universe,
    adjust maintainer field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <limits.h> /* for INT_MAX */
25
25
#include <stdio.h>
26
26
 
 
27
#include "share/alloc.h"
27
28
#include "winamp2/in2.h"
28
29
#include "configure.h"
29
30
#include "infobox.h"
30
31
#include "tagz.h"
31
32
 
32
 
#define PLUGIN_VERSION          "1.1.4"
 
33
#define PLUGIN_VERSION          "1.2.1"
33
34
 
34
35
static In_Module mod_;                      /* the input module (declared near the bottom of this file) */
35
36
static char lastfn_[MAX_PATH];              /* currently playing file (used for getting info on the current file) */
279
280
        if (!tag)
280
281
                return 0;
281
282
        /* Vorbis comment names must be ASCII, so convert 'tag' first */
282
 
        tagname = malloc(wcslen(tag)+1);
 
283
        tagname = safe_malloc_add_2op_(wcslen(tag), /*+*/1);
283
284
        for(p=tagname;*tag;) {
284
285
                if(*tag > 0x7d) {
285
286
                        free(tagname);