mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Need memmem in advance() to work properly for patching.
This commit is contained in:
parent
19eea9067f
commit
d28f526b1e
3
ocl.c
3
ocl.c
@ -98,7 +98,8 @@ int clDevicesNum() {
|
|||||||
|
|
||||||
void advance(char **area, unsigned *remaining, const char *marker)
|
void advance(char **area, unsigned *remaining, const char *marker)
|
||||||
{
|
{
|
||||||
char *find = strstr(*area, marker);
|
char *find = memmem(*area, *remaining, marker, strlen(marker));
|
||||||
|
|
||||||
if (!find)
|
if (!find)
|
||||||
fprintf(stderr, "Marker \"%s\" not found\n", marker), exit(1);
|
fprintf(stderr, "Marker \"%s\" not found\n", marker), exit(1);
|
||||||
*remaining -= find - *area;
|
*remaining -= find - *area;
|
||||||
|
Loading…
Reference in New Issue
Block a user