summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-09-07 08:49:10 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-09-07 08:49:10 +0000
commit85c79094976b446c310cee4450a573a633359f26 (patch)
tree576d90455c0d1593b8b8a3241d44ec47cd624d11
parentdb83069aea07d9d1ffa833cea0f4958d24e4008d (diff)
downloadtar-85c79094976b446c310cee4450a573a633359f26.tar.gz
Bugfixes.
* src/incremen.c (dumpdir_create0): Eliminate gcc warning. (attach_directory): Bugfix - add missing return statement. * THANKS: Add Enric Hernandez
-rw-r--r--ChangeLog6
-rw-r--r--THANKS1
-rw-r--r--src/incremen.c10
3 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 08d641bb..31a7bbe6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-07 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * src/incremen.c (dumpdir_create0): Eliminate gcc warning.
+ (attach_directory): Bugfix - add missing return statement.
+ * THANKS: Add Enric Hernandez
+
2008-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
* src/incremen.c (struct directory): New member `next'. Change
diff --git a/THANKS b/THANKS
index 7538ed35..0c2495cd 100644
--- a/THANKS
+++ b/THANKS
@@ -152,6 +152,7 @@ Eduardo V. de Rivas eddie@asterion.com
Edward Welbourne eddy@gen.cam.ac.uk
Elmar Heeb heeb@itp.ethz.ch
Elmer Fittery elmerf@ptw.com
+Enric Hernandez ehernandez@notariado.org
Eric Backus ericb@lsid.hp.com
Eric Benson eb@amazon.com
Eric Blake ebb9@byu.net
diff --git a/src/incremen.c b/src/incremen.c
index d23e45c7..7e1e3664 100644
--- a/src/incremen.c
+++ b/src/incremen.c
@@ -81,13 +81,14 @@ dumpdir_create0 (const char *contents, const char *cmask)
{
struct dumpdir *dump;
size_t i, total, ctsize, len;
- const char *p;
+ char *p;
+ const char *q;
- for (i = 0, total = 0, ctsize = 1, p = contents; *p; total++, p += len)
+ for (i = 0, total = 0, ctsize = 1, q = contents; *q; total++, q += len)
{
- len = strlen (p) + 1;
+ len = strlen (q) + 1;
ctsize += len;
- if (!cmask || strchr (cmask, *p))
+ if (!cmask || strchr (cmask, *q))
i++;
}
dump = xmalloc (sizeof (*dump) + ctsize);
@@ -279,6 +280,7 @@ attach_directory (const char *name)
else
dirhead = dir;
dirtail = dir;
+ return dir;
}