]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Move some bytes from the data to the text segment
authorVolker Lendecke <vl@samba.org>
Thu, 19 Feb 2009 22:26:06 +0000 (23:26 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 21 Feb 2009 11:53:49 +0000 (12:53 +0100)
source3/libsmb/libsmb_path.c

index 3ea03446d8931d38d79659097bb6c7429293394e..6a59a12ed06648d87ff7013bbaba79497c17aa00 100644 (file)
@@ -216,7 +216,7 @@ smbc_urlencode(char *dest,
  * are supported.
  */
 
-static const char *smbc_prefix = "smb:";
+#define SMBC_PREFIX "smb:"
 
 int
 SMBC_parse_path(TALLOC_CTX *ctx,
@@ -263,8 +263,8 @@ SMBC_parse_path(TALLOC_CTX *ctx,
        s = talloc_strdup(ctx, fname);
         
        /* see if it has the right prefix */
-       len = strlen(smbc_prefix);
-       if (strncmp(s,smbc_prefix,len) || (s[len] != '/' && s[len] != 0)) {
+       len = strlen(SMBC_PREFIX);
+       if (strncmp(s,SMBC_PREFIX,len) || (s[len] != '/' && s[len] != 0)) {
                 return -1; /* What about no smb: ? */
         }