Skip to content

Commit

Permalink
lib/srdb1: adjust the length of str time representation for no-quotes
Browse files Browse the repository at this point in the history
- used only by usrloc fix done in previous commit

(cherry picked from commit f54c723)
  • Loading branch information
miconda committed May 2, 2016
1 parent ffbc744 commit 72ddb3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/srdb1/db_ut.c
Expand Up @@ -264,8 +264,10 @@ inline int db_time2str_ex(time_t _v, char* _s, int* _l, int _qmode)
}
*_l = l;

if(_qmode) *(_s + l) = '\'';
*_l = l + 2;
if(_qmode) {
*(_s + l) = '\'';
*_l = l + 2;
}
return 0;
}

Expand Down

0 comments on commit 72ddb3a

Please sign in to comment.