Skip to content

Commit

Permalink
gnutls: fix compiler warning
Browse files Browse the repository at this point in the history
conversion to 'int' from 'long int' may alter its value
  • Loading branch information
bagder committed Jul 15, 2014
1 parent 4da6e0c commit f069b40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vtls/gtls.c
Expand Up @@ -51,6 +51,7 @@
#include "connect.h" /* for the connect timeout */
#include "select.h"
#include "rawstr.h"
#include "warnless.h"

#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
Expand Down Expand Up @@ -588,7 +589,7 @@ gtls_connect_step1(struct connectdata *conn,
if(!strcmp(err, GNUTLS_SRP)) {
/* This GnuTLS was probably compiled without support for SRP.
* Note that fact and try again without it. */
int validprioritylen = err - prioritylist;
int validprioritylen = curlx_uztosi(err - prioritylist);
char *prioritycopy = strdup(prioritylist);
if(!prioritycopy)
return CURLE_OUT_OF_MEMORY;
Expand Down

0 comments on commit f069b40

Please sign in to comment.