1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 19:56:50 +00:00

fix: deob function

This commit is contained in:
Paul-Christian Volkmer 2025-02-25 00:03:36 +01:00
parent 6916f8ad60
commit 5b6ae2794e
4 changed files with 5 additions and 5 deletions

2
Cargo.lock generated
View File

@ -238,7 +238,7 @@ checksum = "da692b8d1080ea3045efaab14434d40468c3d8657e42abddfffca87b428f4c1b"
[[package]] [[package]]
name = "deob" name = "deob"
version = "0.1.1" version = "0.1.2"
dependencies = [ dependencies = [
"cc", "cc",
] ]

View File

@ -1,6 +1,6 @@
[package] [package]
name = "deob" name = "deob"
version = "0.1.1" version = "0.1.2"
edition = "2021" edition = "2021"
[build-dependencies] [build-dependencies]

View File

@ -1,7 +1,7 @@
/* /*
* This file is part of osc-variant * This file is part of osc-variant
* *
* Copyright (C) 2023-2024 the original author or authors. * Copyright (C) 2023-2025 the original author or authors.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -21,7 +21,7 @@
#include "deob.h" #include "deob.h"
void deob(char *in) { void deob(char *in) {
char *d = malloc(LD*sizeof(char)); char *d = malloc((LD+2)*sizeof(char));
const long long s[2] = {S0, S1}; const long long s[2] = {S0, S1};
for (size_t i = 0; i < LD; i++) d[i] = (CS)[i]; for (size_t i = 0; i < LD; i++) d[i] = (CS)[i];
size_t l = strlen(in) / 2; size_t l = strlen(in) / 2;

View File

@ -1,7 +1,7 @@
/* /*
* This file is part of osc-variant * This file is part of osc-variant
* *
* Copyright (C) 2023-2024 the original author or authors. * Copyright (C) 2023-2025 the original author or authors.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by