From: Frank Mori Hess Date: Sat, 31 May 2003 16:58:45 +0000 (+0000) Subject: be a little more careful about fixing up calibration file path, although X-Git-Tag: r0_7_21~131 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9825b8a1af5156447b6e6d805f86eca58f2705f5;p=comedilib.git be a little more careful about fixing up calibration file path, although it doesn't make any practical difference --- 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);