diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-07 18:41:35 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-07 18:41:35 +0200 |
commit | a7102bc328e3f062bc0123a70cbaadf65ac9a02c (patch) | |
tree | d3d78668069826d42c7cb8f12a743afc5113ddf7 | |
parent | e16d7dddf1ef1df0c8a00f01fede497521134b74 (diff) | |
download | xine-lib-a7102bc328e3f062bc0123a70cbaadf65ac9a02c.tar.gz xine-lib-a7102bc328e3f062bc0123a70cbaadf65ac9a02c.tar.bz2 |
Remove strlen() call after strftime, the returned value is what is needed.
-rw-r--r-- | src/xine-engine/scratch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xine-engine/scratch.c b/src/xine-engine/scratch.c index 3be1c70ef..696e99ffb 100644 --- a/src/xine-engine/scratch.c +++ b/src/xine-engine/scratch.c @@ -54,8 +54,7 @@ static void __attribute__((__format__(__printf__, 2, 0))) if ( ! this->lines[this->cur] ) return; - strftime (this->lines[this->cur], SCRATCH_LINE_LEN_MAX, "%X: ", &tm); - l = strlen (this->lines[this->cur]); + l = strftime (this->lines[this->cur], SCRATCH_LINE_LEN_MAX, "%X: ", &tm); vsnprintf (this->lines[this->cur] + l, SCRATCH_LINE_LEN_MAX - l, format, argp); lprintf ("printing format %s to line %d\n", format, this->cur); |