Commits

Wez Furlong  committed 6dc1fe5

pick some fluff off

  • Participants
  • Parent commits f4139c1

Comments (0)

Files changed (2)

File src/id3v2.cpp

 		case ID3_PLAYCOUNTER_FRAME : {
 			uint64_t playcount = 0;
 			char play_count_syncsafe[16];
-			memset(play_count_syncsafe, 0, 16);
+
+			memset(play_count_syncsafe, 0, sizeof(play_count_syncsafe));
 
 			if (memcmp(frame_payload, "+1", 3) == 0) {
 				if (thisFrame->ID3v2_Frame_Length == 4) {
 			unsigned char popm_rating = 0;
 			uint64_t popm_playcount = 0;
 			char popm_play_count_syncsafe[16];
-			memset(popm_play_count_syncsafe, 0, 16);
+
+			memset(popm_play_count_syncsafe, 0,
+				sizeof(popm_play_count_syncsafe));
 			
 			if (adjunct_payload->ratingArg != NULL) {
 				sscanf(adjunct_payload->ratingArg, "%hhu", &popm_rating);

File src/parsley.cpp

 			memcpy(temp_path, filePath, filepath_len-file_name_len+1);
 		} else {
 			if( getcwd(temp_path, MAXPATHLEN) == NULL ) {
-				printf("Error getting working directory: %s", strerror(errno));
+				printf("Error getting working directory: %s\n", strerror(errno));
 				exit(1);
 			}
 			file_name = (char*)filePath;