diff options
Diffstat (limited to 'timezone/zic.c')
-rw-r--r-- | timezone/zic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/timezone/zic.c b/timezone/zic.c index e37dd7326c..e5c6761d1e 100644 --- a/timezone/zic.c +++ b/timezone/zic.c @@ -613,13 +613,13 @@ const char * const tofile; (void) exit(EXIT_FAILURE); result = link(fromname, toname); -#if (HAVE_SYMLINK - 0) +#if (HAVE_SYMLINK - 0) if (result != 0) { char *s = (char *) tofile; - register char * symlinkcontents = NULL; + register char *symlinkcontents = NULL; while ((s = strchr(s+1, '/')) != NULL) symlinkcontents = ecatalloc(symlinkcontents, "../"); - symlinkcontents = ecatalloc(symlinkcontents, fromfile); + symlinkcontents = ecatalloc(symlinkcontents, fromname); result = symlink(symlinkcontents, toname); if (result == 0) |