|
@@ -825,12 +825,15 @@ static int storef_uristring ( struct settings *settings,
|
825
|
825
|
static int fetchf_uristring ( struct settings *settings,
|
826
|
826
|
struct setting *setting,
|
827
|
827
|
char *buf, size_t len ) {
|
828
|
|
- size_t raw_len;
|
|
828
|
+ ssize_t raw_len;
|
829
|
829
|
|
830
|
830
|
/* We need to always retrieve the full raw string to know the
|
831
|
831
|
* length of the encoded string.
|
832
|
832
|
*/
|
833
|
833
|
raw_len = fetch_setting ( settings, setting, NULL, 0 );
|
|
834
|
+ if ( raw_len < 0 )
|
|
835
|
+ return raw_len;
|
|
836
|
+
|
834
|
837
|
{
|
835
|
838
|
char raw_buf[ raw_len + 1 ];
|
836
|
839
|
|