summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3b7c3e4)
raw | patch | inline | side by side (parent: 3b7c3e4)
author | Alessandro Iurlano <alessandro.iurlano@gmail.com> | |
Thu, 28 Aug 2008 19:16:17 +0000 (21:16 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 28 Aug 2008 19:16:17 +0000 (21:16 +0200) |
src/filecount.c | patch | blob | history |
diff --git a/src/filecount.c b/src/filecount.c
index 30de5a257fddcea50619d813ca5e4c2eccf0b283..55b3655ebaccd877b1a3c844839d1fbcd4e60e79 100644 (file)
--- a/src/filecount.c
+++ b/src/filecount.c
char *ptr;
char *copy;
- strncpy (buffer, str, sizeof (buffer));
+ sstrncpy (buffer, str, sizeof (buffer));
for (ptr = buffer; *ptr != 0; ptr++)
if (*ptr == '/')
*ptr = '_';