[Toybox] [PATCH] remove meaningless ' ' from %c in cp
    enh 
    enh at google.com
       
    Wed Feb 25 22:32:11 PST 2015
    
    
  
diff --git a/toys/posix/cp.c b/toys/posix/cp.c
index 3dc6f2a..45c93e7 100644
--- a/toys/posix/cp.c
+++ b/toys/posix/cp.c
@@ -208,7 +208,7 @@ int cp_node(struct dirtree *try)
         if (*or->name == '/') dotdots = 0;
         if (dotdots) {
-          char *s2 = xmprintf("% *c%s", 3*dotdots, ' ', s);
+          char *s2 = xmprintf("%*c%s", 3*dotdots, ' ', s);
           free(s);
           s = s2;
           while(dotdots--) {
 1424932331.0
    
    
More information about the Toybox
mailing list