Parcourir la source

Implicit conversion is fine here

Bryan Drewery il y a 7 ans
Parent
commit
07681a508d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/net.cc

+ 1 - 1
src/net.cc

@@ -1244,7 +1244,7 @@ int sockgets(char *s, int *len)
   }
   /* Might be necessary to prepend stored-up data! */
   if (socklist[ret].inbuf != NULL) {
-    *(socklist[ret].inbuf) += bd::String(xx);
+    *(socklist[ret].inbuf) += xx;
     if (socklist[ret].inbuf->length() < (SGRAB + 2)) {
       strlcpy(xx, socklist[ret].inbuf->c_str(), sizeof(xx));
       delete socklist[ret].inbuf;