Pārlūkot izejas kodu

- The function db_time2str() should not include the single-quotes.
- Fixes a core dump for db_berkeley module, noticed by Will Quan


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3022 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt 18 gadi atpakaļ
vecāks
revīzija
6f95efa8bf
1 mainītis faili ar 0 papildinājumiem un 4 dzēšanām
  1. 0 4
      lib/srdb1/db_ut.c

+ 0 - 4
lib/srdb1/db_ut.c

@@ -165,8 +165,6 @@ inline int db_time2str(time_t _v, char* _s, int* _l)
 		return -1;
 	}
 
-	*_s++ = '\'';
-
 	/* Convert time_t structure to format accepted by the database */
 	t = localtime(&_v);
 	l = strftime(_s, *_l -1, "%Y-%m-%d %H:%M:%S", t);
@@ -179,8 +177,6 @@ inline int db_time2str(time_t _v, char* _s, int* _l)
 		return -1;
 	}
 
-	*(_s + l) = '\'';
-	*_l = l + 2;
 	return 0;
 }