AmendHub

jcs

/

subtext

/

amendments

/

230

sysop: Pass malloc notes to bile


jcs made amendment 230 2 months ago
--- sysop.c Sun Jul 31 21:37:42 2022 +++ sysop.c Mon Aug 1 12:54:18 2022 @@ -201,7 +201,8 @@ sysop_edit_boards(struct session *s) memcpy(&db->boards[n], new_board, sizeof(struct board)); ret = bile_marshall_object(db->bile, board_object_fields, - nboard_object_fields, &db->boards[n], &data, &size); + nboard_object_fields, &db->boards[n], &data, &size, + "sysop_edit_boards"); if (ret != 0 || size == 0) panic("db_board_create: failed to marshall object"); @@ -323,7 +324,8 @@ sysop_edit_folders(struct session *s) memcpy(&db->folders[n], new_folder, sizeof(struct folder)); ret = bile_marshall_object(db->bile, folder_object_fields, - nfolder_object_fields, &db->folders[n], &data, &size); + nfolder_object_fields, &db->folders[n], &data, &size, + "sysop_edit_folders"); if (ret != 0 || size == 0) panic("db_folder_create: failed to marshall object");