External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.1KB

  1. Description: Fix warning on 64 bit machines. Explicitly set variables as
  2. unsigned ints.
  3. Origin: http://git.debian.org/?p=pkg-multimedia/lame.git;a=blob;f=debian/patches/07-field-width-fix.patch
  4. Forwarded: commit:1.282
  5. Applied-Upstream: commit:1.282
  6. --- a/frontend/parse.c
  7. +++ b/frontend/parse.c
  8. @@ -402,11 +402,11 @@ lame_version_print(FILE * const fp)
  9. const char *b = get_lame_os_bitness();
  10. const char *v = get_lame_version();
  11. const char *u = get_lame_url();
  12. - const size_t lenb = strlen(b);
  13. - const size_t lenv = strlen(v);
  14. - const size_t lenu = strlen(u);
  15. - const size_t lw = 80; /* line width of terminal in characters */
  16. - const size_t sw = 16; /* static width of text */
  17. + const unsigned int lenb = strlen(b);
  18. + const unsigned int lenv = strlen(v);
  19. + const unsigned int lenu = strlen(u);
  20. + const unsigned int lw = 80; /* line width of terminal in characters */
  21. + const unsigned int sw = 16; /* static width of text */
  22. if (lw >= lenb + lenv + lenu + sw || lw < lenu + 2)
  23. /* text fits in 80 chars per line, or line even too small for url */