blob: c00b6ff45242891422f77e85cb73c36a3cd99f93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- watchdog-5.2.4.orig.orig/src/mntent.c 2003-01-28 07:47:38.000000000 +0100
+++ watchdog-5.2.4.orig/src/mntent.c 2008-10-16 13:00:20.000000000 +0200
@@ -6,7 +6,7 @@
#endif
#include <stdio.h>
-#include <string.h> /* for index */
+#include <string.h> /* for strchr */
#include <ctype.h> /* for isdigit */
#include "wd_mntent.h"
#include "sundries.h" /* for xmalloc */
@@ -155,7 +155,7 @@ my_getmntent (mntFILE *mfp) {
if (fgets (buf, sizeof(buf), mfp->mntent_fp) == NULL)
return NULL;
- s = index (buf, '\n');
+ s = strchr (buf, '\n');
if (s == NULL) {
/* extremely long line - assume file was corrupted */
mfp->mntent_errs = 1;
|