localstatedir should be /var, thus we need append a lib/ here

This commit is contained in:
David Schleef 2003-08-30 04:21:50 +00:00
parent 22b88279c2
commit 3602f4abab

View file

@ -201,7 +201,7 @@ char* _comedi_get_default_calibration_path( comedi_t *dev )
board_name = strdup( temp );
fixup_board_name( board_name );
asprintf( &file_path, LOCALSTATEDIR "/comedi/calibrations/%s_%s_comedi%li",
asprintf( &file_path, LOCALSTATEDIR "/lib/comedi/calibrations/%s_%s_comedi%li",
driver_name, board_name, ( unsigned long ) minor( file_stats.st_rdev ) );
free( board_name );