ossp-pkg/rc/rc_script.c 1.21 -> 1.22
--- rc_script.c 2003/05/23 14:14:09 1.21
+++ rc_script.c 2003/05/26 16:24:08 1.22
@@ -200,7 +200,8 @@
nLabsize = *(pnVec + 3) - *(pnVec + 2);
/* Test the substring. If it matches our label, make a new section */
- if (!strncmp(piLabstart, kszSecname, nLabsize)) {
+ if (strncmp(piLabstart, kszSecname, nLabsize) == 0 \
+ && nLabsize == strlen(kszSecname) * sizeof (char)) {
/* Handle the section body */
piStart = piBlocend + *(pnVec + 6);
piEnd = piBlocend + *(pnVec + 7);
|
|