Little polish things I forgot to tweak.

This commit is contained in:
toasterbabe 2017-04-29 16:40:07 +01:00
parent 8f2490d588
commit 308503d5b8
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ int snprintf(char *str, size_t n, const char *fmt, ...);
#include "m_cond.h" // condition initialization
#include "fastcmp.h"
#include "keys.h"
#include "filesrch.h" // mainwadstally
#include "filesrch.h" // refreshdirmenu, mainwadstally
#ifdef CMAKECONFIG
#include "config.h"

View File

@ -56,8 +56,8 @@ size_t strlcpy(char *dst, const char *src, size_t siz)
// stack overflow, eep...
char* stristr(char* haystack, const char* needle)
{
char* p1 = haystack ;
const char* p2 = needle ;
char* p1 = haystack;
const char* p2 = needle;
char* r = ((*p2 == 0) ? haystack : 0);
while (*p1 != 0 && *p2 != 0)