mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-27 14:29:42 +03:00
Fix bug #3188385: ensure that options_snoptionf terminates its output
svn path=/trunk/netsurf/; revision=11749
This commit is contained in:
parent
66247f5b37
commit
63f902e995
@ -633,6 +633,10 @@ int options_snoptionf(char *string, size_t size, unsigned int option,
|
|||||||
fmtc++;
|
fmtc++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ensure that we NUL-terminate the output */
|
||||||
|
string[min(slen, size - 1)] = '\0';
|
||||||
|
|
||||||
return slen;
|
return slen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user