Index: read.c =================================================================== --- read.c (revision 28812) +++ read.c (revision 28813) @@ -676,7 +676,7 @@ if (subc != NULL) { if (pcb_subc_get_side(subc, &on_bottom) == -1) { - hkp_error(subc, "Error getting subc side\n"); + hkp_error(n, "Error getting subc side\n"); } else { if (on_bottom == 1)