r23779: Change from v2 or later to v3 or later.
[samba.git] / source3 / nmbd / nmbd_incomingdgrams.c
index ef23f3a20dbc25a78c006b42b2efe464a180c623..743815673363359e9ff4c79f64efab14ed30eafd 100644 (file)
@@ -7,7 +7,7 @@
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
@@ -429,13 +429,13 @@ void process_lm_host_announce(struct subnet_record *subrec, struct packet_struct
        unstring work_name;
        unstring source_name;
        fstring comment;
-       char *s = get_safe_offset(buf,len,buf,9);
+       char *s = get_safe_str_ptr(buf,len,buf,9);
 
        START_PROFILE(lm_host_announce);
        if (!s) {
                goto done;
        }
-       s = skip_string(buf,len,s,1);
+       s = skip_string(buf,len,s);
        if (!s) {
                goto done;
        }
@@ -574,7 +574,7 @@ static void send_backup_list_response(struct subnet_record *subrec,
        myname[15]='\0';
        push_pstring_base(p, myname, outbuf);
 
-       p = skip_string(outbuf,sizeof(outbuf),p,1);
+       p = skip_string(outbuf,sizeof(outbuf),p);
 
        /* Look for backup browsers in this workgroup. */
 
@@ -610,7 +610,7 @@ static void send_backup_list_response(struct subnet_record *subrec,
     DEBUG(5,("send_backup_list_response: Adding server %s number %d\n",
               p, count));
 
-    p = skip_string(outbuf,sizeof(outbuf),p,1);
+    p = skip_string(outbuf,sizeof(outbuf),p);
   }
 #endif