diff options
Diffstat (limited to 'shlibs/blkid/src/config.c')
-rw-r--r-- | shlibs/blkid/src/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shlibs/blkid/src/config.c b/shlibs/blkid/src/config.c index 9091736b..fcc7b6f1 100644 --- a/shlibs/blkid/src/config.c +++ b/shlibs/blkid/src/config.c @@ -68,12 +68,12 @@ static int parse_next(FILE *fd, struct blkid_config *conf) do { if (fgets (buf, sizeof(buf), fd) == NULL) return feof(fd) ? 0 : -1; - s = index (buf, '\n'); + s = strchr (buf, '\n'); if (!s) { /* Missing final newline? Otherwise extremely */ /* long line - assume file was corrupted */ if (feof(fd)) - s = index (buf, '\0'); + s = strchr (buf, '\0'); else { DBG(DEBUG_CONFIG, fprintf(stderr, "libblkid: config file: missing newline at line '%s'.\n", |