Imported Upstream version 2.6.1p1
[debian/amanda] / amandad-src / amandad.c
index cfb7a47948ec7edeb04786fe85e9058f389a468c..7591705898b1e11c2c1ea33a334c9f5a8745d2d3 100644 (file)
@@ -1255,7 +1255,7 @@ errfd_recv(
     }
 
     /* for each line terminate by '\n' */
-    while (as->errbuf != NULL  && (r = index(as->errbuf, '\n')) != NULL) {
+    while (as->errbuf != NULL  && (r = strchr(as->errbuf, '\n')) != NULL) {
        char *s;
 
        *r = '\0';