1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Move some bytes from the data to the text segment

This commit is contained in:
Volker Lendecke
2009-02-19 23:26:06 +01:00
parent 2562723445
commit 3305780e5d

View 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: ? */
}