diff options
author | Volker Lendecke <vl@samba.org> | 2009-02-19 23:26:06 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-02-21 12:53:49 +0100 |
commit | 3305780e5d5d10a35e116f43efe47b8a94a9d3fd (patch) | |
tree | 605c91649f6434941151a8a0bcad27e6e2c81eda | |
parent | 25627234451735154d7c8a12ed920397d0371b1c (diff) | |
download | samba-3305780e5d5d10a35e116f43efe47b8a94a9d3fd.tar.gz samba-3305780e5d5d10a35e116f43efe47b8a94a9d3fd.tar.bz2 samba-3305780e5d5d10a35e116f43efe47b8a94a9d3fd.zip |
Move some bytes from the data to the text segment
-rw-r--r-- | source3/libsmb/libsmb_path.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/libsmb_path.c b/source3/libsmb/libsmb_path.c index 3ea03446d8..6a59a12ed0 100644 --- a/source3/libsmb/libsmb_path.c +++ b/source3/libsmb/libsmb_path.c @@ -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: ? */ } |