diff --git a/gettext-runtime/libasprintf/autosprintf.cc b/gettext-runtime/libasprintf/autosprintf.cc index 1d3a8f275..5e867d3e1 100644 --- a/gettext-runtime/libasprintf/autosprintf.cc +++ b/gettext-runtime/libasprintf/autosprintf.cc @@ -35,7 +35,7 @@ # include #else # include -#fi +#endif namespace gnu { @@ -59,7 +59,7 @@ namespace gnu /* Copy constructor. Necessary because the destructor is nontrivial. */ autosprintf& autosprintf::operator = (autosprintf copy) { - std::swap (tmp.str, this->str); + std::swap (copy.str, this->str); return *this; }