From 4d06239d39f8433a7246abae5645e9ad54cca1bb Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 23:46:12 +0100 Subject: fix compiler warnings in hurd/nfs and hurd/nfsd * nfsd/fsys.c (init_filesystems): Use 'm' qualifier instead of 'a' for allocating the name in fscanf call. --- nfsd/fsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfsd/fsys.c b/nfsd/fsys.c index 7b15d150..f7467165 100644 --- a/nfsd/fsys.c +++ b/nfsd/fsys.c @@ -72,7 +72,7 @@ init_filesystems (void) for (line = 1; ; line++) { - nitems = fscanf (index_file, "%d %as\n", &index, &name); + nitems = fscanf (index_file, "%d %ms\n", &index, &name); if (nitems == EOF) { fclose (index_file); -- cgit v1.2.3