diff options
Diffstat (limited to 'lib/misc.c')
| -rw-r--r-- | lib/misc.c | 8 | 
1 files changed, 2 insertions, 6 deletions
| @@ -89,12 +89,14 @@ time_t get_time(int year, int month, int day, int hour, int min, int sec)  {  	struct tm tm; +	memset(&tm, 0, sizeof(struct tm));  	tm.tm_year = year - 1900;  	tm.tm_mon = month - 1;  	tm.tm_mday = day;  	tm.tm_hour = hour;  	tm.tm_min = min;  	tm.tm_sec = sec >= 0 ? sec : time(NULL) % 60; +	  	return mktime(&tm);  } @@ -244,12 +246,6 @@ char *escape_html( const char *html )  	return( str );  } -void info_string_append(GString *str, char *newline, char *name, char *value) -{ -	if( value && value[0] ) -		g_string_sprintfa( str, "%s%s: %s", newline, name, value ); -} -  /* Decode%20a%20file%20name						*/  void http_decode( char *s )  { | 
