aboutsummaryrefslogtreecommitdiff
path: root/coreutils/diff.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-11 10:56:37 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-11 10:56:37 +0000
commitd864af5b2cc90bf9385e5ec7a2b1e0b6a2583754 (patch)
tree55638ec5c9789159f25822f692c879c8fec5ff42 /coreutils/diff.c
parent4b4cf7520ea68dad19cfd324c0752582807a5082 (diff)
downloadbusybox-w32-d864af5b2cc90bf9385e5ec7a2b1e0b6a2583754.tar.gz
busybox-w32-d864af5b2cc90bf9385e5ec7a2b1e0b6a2583754.tar.bz2
busybox-w32-d864af5b2cc90bf9385e5ec7a2b1e0b6a2583754.zip
fix buglets found by randomconfig run
git-svn-id: svn://busybox.net/trunk/busybox@18064 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/diff.c')
-rw-r--r--coreutils/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 73b576f31..fa6ef105e 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -82,7 +82,7 @@ static char *start;
82static const char *label1; 82static const char *label1;
83static const char *label2; 83static const char *label2;
84static struct stat stb1, stb2; 84static struct stat stb1, stb2;
85static char **dl; 85USE_FEATURE_DIFF_DIR(static char **dl;)
86USE_FEATURE_DIFF_DIR(static int dl_count;) 86USE_FEATURE_DIFF_DIR(static int dl_count;)
87 87
88struct cand { 88struct cand {
@@ -1051,7 +1051,7 @@ static int add_to_dirlist(const char *filename,
1051{ 1051{
1052 /* +2: with space for eventual trailing NULL */ 1052 /* +2: with space for eventual trailing NULL */
1053 dl = xrealloc(dl, (dl_count+2) * sizeof(dl[0])); 1053 dl = xrealloc(dl, (dl_count+2) * sizeof(dl[0]));
1054 dl[dl_count] = xstrdup(filename + (int)userdata); 1054 dl[dl_count] = xstrdup(filename + (int)(ptrdiff_t)userdata);
1055 dl_count++; 1055 dl_count++;
1056 return TRUE; 1056 return TRUE;
1057} 1057}