Преглед изворни кода

- 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 година
родитељ
комит
6f95efa8bf
1 измењених фајлова са 0 додато и 4 уклоњено
  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;
 		return -1;
 	}
 	}
 
 
-	*_s++ = '\'';
-
 	/* Convert time_t structure to format accepted by the database */
 	/* Convert time_t structure to format accepted by the database */
 	t = localtime(&_v);
 	t = localtime(&_v);
 	l = strftime(_s, *_l -1, "%Y-%m-%d %H:%M:%S", t);
 	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;
 		return -1;
 	}
 	}
 
 
-	*(_s + l) = '\'';
-	*_l = l + 2;
 	return 0;
 	return 0;
 }
 }