diff options
author | Denis Vlasenko | 2007-03-11 10:56:37 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-03-11 10:56:37 +0000 |
commit | a4688bf55de75db06af9d816ac7e6c7b7b19964a (patch) | |
tree | 55638ec5c9789159f25822f692c879c8fec5ff42 /coreutils/diff.c | |
parent | be644a81e91bcfacfc8948a39e5184fa6cba663e (diff) | |
download | busybox-a4688bf55de75db06af9d816ac7e6c7b7b19964a.zip busybox-a4688bf55de75db06af9d816ac7e6c7b7b19964a.tar.gz |
fix buglets found by randomconfig run
Diffstat (limited to 'coreutils/diff.c')
-rw-r--r-- | coreutils/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c index 73b576f..fa6ef10 100644 --- a/coreutils/diff.c +++ b/coreutils/diff.c @@ -82,7 +82,7 @@ static char *start; static const char *label1; static const char *label2; static struct stat stb1, stb2; -static char **dl; +USE_FEATURE_DIFF_DIR(static char **dl;) USE_FEATURE_DIFF_DIR(static int dl_count;) struct cand { @@ -1051,7 +1051,7 @@ static int add_to_dirlist(const char *filename, { /* +2: with space for eventual trailing NULL */ dl = xrealloc(dl, (dl_count+2) * sizeof(dl[0])); - dl[dl_count] = xstrdup(filename + (int)userdata); + dl[dl_count] = xstrdup(filename + (int)(ptrdiff_t)userdata); dl_count++; return TRUE; } |