mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:06:50 +00:00
Fixed compiler warning
SVN revision: 2243
This commit is contained in:
parent
4c58edac44
commit
fab77a1b1e
@ -3589,7 +3589,8 @@ void el_decode_int(char *message, char *key, char *result, int size)
|
|||||||
*result = 0;
|
*result = 0;
|
||||||
el_decode(message, key, str, sizeof(str));
|
el_decode(message, key, str, sizeof(str));
|
||||||
if (str[0])
|
if (str[0])
|
||||||
sprintf(result, "%d", atoi(str));
|
sprintf(str, "%d", atoi(str));
|
||||||
|
strlcpy(result, str, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user