1 | Index: trunk/i386/libsaio/sys.c␊ |
2 | ===================================================================␊ |
3 | --- trunk/i386/libsaio/sys.c␉(revision 2026)␊ |
4 | +++ trunk/i386/libsaio/sys.c␉(working copy)␊ |
5 | @@ -343,6 +343,7 @@␊ |
6 | } else {␊ |
7 | idx++;␊ |
8 | strncpy(gMakeDirSpec, name, idx);␊ |
9 | + gMakeDirSpec[idx] = '\0';␊ |
10 | name += idx;␊ |
11 | }␊ |
12 | dirSpec = gMakeDirSpec;␊ |
13 | Index: trunk/i386/boot2/boot.c␊ |
14 | ===================================================================␊ |
15 | --- trunk/i386/boot2/boot.c␉(revision 2026)␊ |
16 | +++ trunk/i386/boot2/boot.c␉(working copy)␊ |
17 | @@ -272,15 +272,6 @@␊ |
18 | ␉␉}␊ |
19 | ␉}␊ |
20 | ␊ |
21 | -␉// kernelCacheFile must start with a /␊ |
22 | -␉if (kernelCacheFile[0] != '/') {␊ |
23 | -␉␉char *str = strdup(kernelCacheFile);␊ |
24 | -␉␉if (str == NULL)␊ |
25 | -␉␉␉return -1;␊ |
26 | -␉␉sprintf(kernelCacheFile, "/%s", str);␊ |
27 | -␉␉free(str);␊ |
28 | -␉}␊ |
29 | -␊ |
30 | ␉// Check if the kernel cache file exists␊ |
31 | ␉ret = -1;␊ |
32 | ␊ |
33 |