Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Miscellany
Friday, March 30th, 2007 at 3:01:57pm UTC 

  1. Index: apps/cuesheet.c
  2. ===================================================================
  3. --- apps/cuesheet.c     (revision 12960)
  4. +++ apps/cuesheet.c     (working copy)
  5. @@ -180,8 +180,10 @@
  6.                      break;
  7.              }
  8.  
  9. -            if (dest)
  10. -                strncpy(dest, string, MAX_NAME);
  11. +            if (dest) {
  12. +                dest = iso_decode(string, dest, -1, MIN(strlen(string), MAX_NAME));
  13. +                *dest = '\0';
  14. +            }   
  15.          }
  16.      }
  17.      close(fd);
  18. Index: apps/cuesheet.h
  19. ===================================================================
  20. --- apps/cuesheet.h     (revision 12960)
  21. +++ apps/cuesheet.h     (working copy)
  22. @@ -27,9 +27,9 @@
  23.  #define MAX_TRACKS 99  /* Max number of tracks in a cuesheet */
  24.  
  25.  struct cue_track_info {
  26. -    char title[MAX_NAME];
  27. -    char performer[MAX_NAME];
  28. -    char songwriter[MAX_NAME];
  29. +    char title[MAX_NAME*3+1];
  30. +    char performer[MAX_NAME*3+1];
  31. +    char songwriter[MAX_NAME*3+1];
  32.      unsigned long offset; /* ms from start of track */
  33.  };
  34.  
  35. @@ -37,8 +37,8 @@
  36.      char path[MAX_PATH];
  37.      char audio_filename[MAX_PATH];
  38.  
  39. -    char title[MAX_NAME];
  40. -    char performer[MAX_NAME];
  41. +    char title[MAX_NAME*3+1];
  42. +    char performer[MAX_NAME*3+1];
  43.  
  44.      int track_count;
  45.      struct cue_track_info tracks[MAX_TRACKS];

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right