diff options
Diffstat (limited to 'sbin/raidctl/rf_configure.c')
-rw-r--r-- | sbin/raidctl/rf_configure.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/raidctl/rf_configure.c b/sbin/raidctl/rf_configure.c index 8df7889..2970467 100644 --- a/sbin/raidctl/rf_configure.c +++ b/sbin/raidctl/rf_configure.c @@ -249,7 +249,7 @@ rf_MakeConfig(configname, cfgPtr) } /* Get rid of the newline at the end of the string */ if ((bfr1 = strchr(&bfr[0], '\n')) != NULL) - *bfr1 = NULL; + *bfr1 = '\0'; /* Make sure the device exists */ if ((devfd = open(&bfr[0], O_RDWR)) < 0) { RF_ERRORMSG2( |