SHA256
1
0
forked from pool/timezone
timezone/tzcode-fromname.patch

25 lines
700 B
Diff

--- timezone-2013g/zic.c
+++ timezone-2013g/zic.c 2013-10-14 13:52:42.070235810 +0000
@@ -628,17 +628,17 @@ dolink(const char *const fromfield, cons
result = link(fromname, toname);
if (result != 0) {
- const char *s = fromfield;
+ const char *s = fromname;
const char *t;
register char * symlinkcontents = NULL;
do
t = s;
while ((s = strchr(s, '/'))
- && ! strncmp (fromfield, tofield,
- ++s - fromfield));
+ && ! strncmp (fromname, tofield,
+ ++s - fromname));
- for (s = tofield + (t - fromfield);
+ for (s = tofield + (t - fromname);
(s = strchr(s, '/'));
s++)
symlinkcontents =