Fix includes
FossilOrigin-Name: b85162a08463c5dd7ff3f92af3a91f25cc9c3ef44ce0cdf5dcd7877425b98546
This commit is contained in:
parent
3a365b44ce
commit
b2ce413a13
3 changed files with 4 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "notifications.h"
|
||||
#include "string_helpers.h"
|
||||
#include "../config.h"
|
||||
#include "local_config_set.h"
|
||||
|
||||
// Files
|
||||
#include "../static/index.chtml"
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "l10n.h"
|
||||
#include "local_config.h"
|
||||
#include "session.h"
|
||||
|
||||
enum base_category
|
||||
{
|
||||
BASE_CAT_NONE,
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include "string.h"
|
||||
|
@ -61,7 +62,7 @@ char* strrepl(char* source, char* find, char* repl)
|
|||
|
||||
do
|
||||
{
|
||||
n = strstr(find);
|
||||
n = strstr(needle, find);
|
||||
if (!n) break;
|
||||
result = realloc(result, n - source + repl_len + 1);
|
||||
result[n - source + repl_len] = '\0';
|
||||
|
|
Loading…
Reference in a new issue