Public bug reported:

In id3tag.h, the type id3_ucs4_t is typedef'd as an unsigned long.
Clearly this type needs to be a 32 bit unsigned int but an unsigned long
is 64 bit on a 64 bit system. Changing the typedef to read

typedef uint32_t id3_ucs4_t;

and #including <stdint.h> fixes the problem.

Without this fix, strings returned by id3_field_getstrings() are only
ever 1 character long.

** Affects: libid3tag (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1094794

Title:
  libid3tag truncates strings on 64 bit systems

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libid3tag/+bug/1094794/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to