localstatedir should be /var, thus we need append a lib/ here
authorDavid Schleef <ds@schleef.org>
Sat, 30 Aug 2003 04:21:50 +0000 (04:21 +0000)
committerDavid Schleef <ds@schleef.org>
Sat, 30 Aug 2003 04:21:50 +0000 (04:21 +0000)
lib/calib.c

index f792159d1a48accef0309ce91034758056debaaa..87fc6340484653692c58ecd8f2791a234de0b348 100644 (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 );