From 9825b8a1af5156447b6e6d805f86eca58f2705f5 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 31 May 2003 16:58:45 +0000 Subject: [PATCH] be a little more careful about fixing up calibration file path, although it doesn't make any practical difference --- lib/calib.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/calib.c b/lib/calib.c index d506888..fc39a27 100644 --- a/lib/calib.c +++ b/lib/calib.c @@ -165,7 +165,13 @@ int _comedi_apply_parsed_calibration( comedi_t *dev, unsigned int subdev, unsign static void fixup_board_name( char *name ) { while( ( name = strchr( name, '/' ) ) ) - if( name ) *name = '-'; + { + if( name ) + { + *name = '-'; + name++; + } + } } EXPORT_ALIAS_DEFAULT(_comedi_get_default_calibration_path,comedi_get_default_calibration_path,0.7.20); -- 2.26.2