]> arthur.barton.de Git - netatalk.git/commitdiff
Now that we're only incremeting one at a time, make length reflect that.
authorjmarcus <jmarcus>
Tue, 11 Sep 2001 00:30:26 +0000 (00:30 +0000)
committerjmarcus <jmarcus>
Tue, 11 Sep 2001 00:30:26 +0000 (00:30 +0000)
libatalk/util/getiface.c

index e1351a8a0fd15d8648ed2be71bd167c72391e120..c1be3e7f67ea039f1c52d036c311568e65e0c526 100644 (file)
@@ -53,7 +53,7 @@ static int addname(char **list, int *i, int *length, const char *name)
       memcpy(new, list, *length);
       list = new;
       
-      *length += IFACE_NUM;
+      *length += 1;
     }
      
     if ((list[*i] = strdup(name)) == NULL)