]> arthur.barton.de Git - netatalk.git/blobdiff - bin/nbp/nbplkup.c
Wrong path from 2-1
[netatalk.git] / bin / nbp / nbplkup.c
index 2e3850f29f82068e9397b2fd6870d1d77ab61051..a43ac41c06d850174b22ad88c9cca9737b4332bf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: nbplkup.c,v 1.7 2009-10-14 01:38:28 didg Exp $
+ * $Id: nbplkup.c,v 1.9 2009-10-29 11:35:57 didg Exp $
  *
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
  * All Rights Reserved.
@@ -49,7 +49,7 @@ static void Usage(char *av0)
 {
     char       *p;
 
-    if (( p = strrchr( av0, '/' )) == 0 ) {
+    if (( p = strrchr( av0, '/' )) == NULL ) {
        p = av0;
     } else {
        p++;
@@ -148,7 +148,7 @@ int main(int ac, char **av)
 
     if ( ac - optind == 1 ) {
        if ((size_t)(-1) == convert_string_allocate( CH_UNIX, chMac,
-                           av[ optind ], strlen(av[optind]), &convname))
+                           av[ optind ], -1, &convname))
             convname = av[ optind ];
 
        if ( nbp_name( convname, &Obj, &Type, &Zone )) {