Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4bf2b5
)
Optimized '%f' a little more.
author
Wayne Davison
<wayned@samba.org>
Wed, 30 Mar 2005 20:41:11 +0000
(20:41 +0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 30 Mar 2005 20:41:11 +0000
(20:41 +0000)
log.c
patch
|
blob
|
blame
|
history
diff --git
a/log.c
b/log.c
index
f91f7a5
..
c6d2fc8
100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-397,7
+397,10
@@
static void log_formatted(enum logcode code, char *format, char *op,
file->dir.root, n);
/* The buffer from safe_fname() has more
* room than MAXPATHLEN, so this is safe. */
- strcpy(n, buf2);
+ if (fmt[1])
+ strcpy(n, buf2);
+ else
+ n = buf2;
}
clean_fname(n, 0);
if (*n == '/')