summaryrefslogtreecommitdiff
path: root/usr.bin/patch/backupfile.c
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2003-07-12 13:47:42 +0000
committeritojun <itojun@NetBSD.org>2003-07-12 13:47:42 +0000
commitef4b3d620c7cfa0c33574a111c08c8ed9a16de9d (patch)
treef341f552db240284390cfd71ea4fc9e328254791 /usr.bin/patch/backupfile.c
parent417386ecc95b1d45f88061831633b31f92945d27 (diff)
copyright missing in files, copy them from README
Diffstat (limited to 'usr.bin/patch/backupfile.c')
-rw-r--r--usr.bin/patch/backupfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/backupfile.c b/usr.bin/patch/backupfile.c
index 8ee6b75ba0d..ca710af042c 100644
--- a/usr.bin/patch/backupfile.c
+++ b/usr.bin/patch/backupfile.c
@@ -1,4 +1,4 @@
-/* $NetBSD: backupfile.c,v 1.11 2003/07/08 01:55:35 kristerw Exp $ */
+/* $NetBSD: backupfile.c,v 1.12 2003/07/12 13:47:43 itojun Exp $ */
/* backupfile.c -- make Emacs style backup file names
Copyright (C) 1990 Free Software Foundation, Inc.
@@ -15,7 +15,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: backupfile.c,v 1.11 2003/07/08 01:55:35 kristerw Exp $");
+__RCSID("$NetBSD: backupfile.c,v 1.12 2003/07/12 13:47:43 itojun Exp $");
#endif /* not lint */
#include <stdio.h>
@@ -214,7 +214,7 @@ dirname(const char *path)
length = slash - path + 1;
}
newpath = xmalloc(length + 1);
- strncpy (newpath, path, length);
+ strncpy(newpath, path, length);
newpath[length] = 0;
return newpath;
}