Explorar o código

lib/srdb1: adjust the length of str time representation for no-quotes

- used only by usrloc fix done in previous commit
Daniel-Constantin Mierla %!s(int64=9) %!d(string=hai) anos
pai
achega
f54c723d9d
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      lib/srdb1/db_ut.c

+ 4 - 2
lib/srdb1/db_ut.c

@@ -264,8 +264,10 @@ inline int db_time2str_ex(time_t _v, char* _s, int* _l, int _qmode)
 	}
 	}
 	*_l = l;
 	*_l = l;
 
 
-	if(_qmode) *(_s + l) = '\'';
-	*_l = l + 2;
+	if(_qmode) {
+		*(_s + l) = '\'';
+		*_l = l + 2;
+	}
 	return 0;
 	return 0;
 }
 }