be a little more careful about fixing up calibration file path, although
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 31 May 2003 16:58:45 +0000 (16:58 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 31 May 2003 16:58:45 +0000 (16:58 +0000)
it doesn't make any practical difference

lib/calib.c

index d5068880018c45ce3ce4a7c81cdae9e33f1ee134..fc39a271068b9ff61a3f15eb468d8bbaccbc07cd 100644 (file)
@@ -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);