]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/status.c
replace "16" with "AFPSTATUS_MACHLEN"
[netatalk.git] / etc / afpd / status.c
index f7455a0e1979602093dbfec99a577ee0effb1d37..c3ecc1f20740e4afd9b2eecfadd8b1c4f104cd77 100644 (file)
@@ -135,10 +135,10 @@ static void status_machine(char *data)
     memcpy(&status, start + AFPSTATUS_MACHOFF, sizeof(status));
     data += ntohs( status );
 
-    if ((strlen(machine) + strlen(VERSION)) <= 16) {
+    if ((strlen(machine) + strlen(VERSION)) <= AFPSTATUS_MACHLEN) {
         len = snprintf(buf, AFPSTATUS_MACHLEN + 1, machine, VERSION);
     } else {
-        if (strlen(VERSION) > 16) {
+        if (strlen(VERSION) > AFPSTATUS_MACHLEN) {
             len = snprintf(buf, AFPSTATUS_MACHLEN + 1, VERSION);
         } else {
             (void)snprintf(buf, AFPSTATUS_MACHLEN + 1, machine, "");