]> andersk Git - openssh.git/commitdiff
- deraadt@cvs.openbsd.org 2002/06/23 03:25:50
authormouring <mouring>
Sun, 23 Jun 2002 21:20:34 +0000 (21:20 +0000)
committermouring <mouring>
Sun, 23 Jun 2002 21:20:34 +0000 (21:20 +0000)
     [tildexpand.c]
     KNF

ChangeLog
tildexpand.c

index e201aee17a0864cc5c0fc72ed675182da2315721..aec81bf38c05c6fd28090076865737ef9a6d39da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+20020624
+ - OpenBSD CVS Sync
+   - deraadt@cvs.openbsd.org 2002/06/23 03:25:50
+     [tildexpand.c]
+     KNF
+
 20020623
  - (stevesk) [configure.ac] bug #255 LOGIN_NEEDS_UTMPX for AIX.
  - (bal) removed GNUism for getops in ssh-agent since glibc lacks optreset.
index e89a7ade8acdf762b3f08a89208a6521a8143034..cbe981146730b308291e9fd17a30ba40b8e1f3a9 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: tildexpand.c,v 1.12 2001/08/11 22:51:27 jakob Exp $");
+RCSID("$OpenBSD: tildexpand.c,v 1.13 2002/06/23 03:25:50 deraadt Exp $");
 
 #include "xmalloc.h"
 #include "log.h"
@@ -67,6 +67,7 @@ tilde_expand_filename(const char *filename, uid_t my_uid)
        if (len > MAXPATHLEN)
                fatal("Home directory too long (%d > %d", len-1, MAXPATHLEN-1);
        expanded = xmalloc(len);
-       snprintf(expanded, len, "%s%s%s", pw->pw_dir, strcmp(pw->pw_dir, "/") ? "/" : "", cp + 1);
+       snprintf(expanded, len, "%s%s%s", pw->pw_dir,
+           strcmp(pw->pw_dir, "/") ? "/" : "", cp + 1);
        return expanded;
 }
This page took 0.045158 seconds and 5 git commands to generate.