提交 0a6504d4 编写于 作者: M Martin Kletzander

util: typos in fallback code fo virDoubleToStr

Fixes for some typos that somehow didn't get to the final push of the
commit 43bfa23e.
上级 3b0cd660
......@@ -2106,7 +2106,7 @@ virDoubleToStr(char **strp, double number)
char *radix, *tmp;
struct lconv *lc;
if ((ret = virVasprintf(strp, "%lf", number) < 0)
if ((ret = virAsprintf(strp, "%lf", number) < 0))
goto error;
lc = localeconv();
......@@ -2115,7 +2115,7 @@ virDoubleToStr(char **strp, double number)
if (tmp) {
*tmp = '.';
if (strlen(radix) > 1)
memmove(tmp + 1, tmp + strlen(radix), strlen(*strp) - (tmp - str));
memmove(tmp + 1, tmp + strlen(radix), strlen(*strp) - (tmp - *strp));
}
#endif /* HAVE_NEWLOCALE */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册