Changeset 204 for branches/samba-3.2.x/source/client/mount.cifs.c
- Timestamp:
- May 20, 2009, 6:46:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/client/mount.cifs.c
r141 r204 95 95 /* like strncpy but does not 0 fill the buffer and always null 96 96 * terminates. bufsize is the size of the destination buffer */ 97 s ize_t strlcpy(char *d, const char *s, size_t bufsize)97 static size_t strlcpy(char *d, const char *s, size_t bufsize) 98 98 { 99 99 size_t len = strlen(s); … … 109 109 * terminates. bufsize is the length of the buffer, which should 110 110 * be one more than the maximum resulting string length */ 111 s ize_t strlcat(char *d, const char *s, size_t bufsize)111 static size_t strlcat(char *d, const char *s, size_t bufsize) 112 112 { 113 113 size_t len1 = strlen(d); … … 197 197 if(line_buf == NULL) { 198 198 fclose(fs); 199 return -ENOMEM;199 return ENOMEM; 200 200 } 201 201 … … 534 534 rc = open_cred_file(value); 535 535 if(rc) { 536 printf("error %d opening credential file %s\n",rc, value); 536 printf("error %d (%s) opening credential file %s\n", 537 rc, strerror(rc), value); 537 538 return 1; 538 539 }
Note:
See TracChangeset
for help on using the changeset viewer.