Changeset 282 for branches/samba-3.2.x/source/client
- Timestamp:
- Jun 24, 2009, 10:34:52 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/client/client.c
r232 r282 365 365 /* Ensure cur_dir ends in a DIRSEP */ 366 366 if ((new_cd[0] != '\0') && (*(new_cd+strlen(new_cd)-1) != CLI_DIRSEP_CHAR)) { 367 new_cd = talloc_asprintf_append(new_cd, CLI_DIRSEP_STR);367 new_cd = talloc_asprintf_append(new_cd, "%s", CLI_DIRSEP_STR); 368 368 if (!new_cd) { 369 369 goto out; … … 872 872 mask = talloc_strdup(ctx, buf); 873 873 } else { 874 mask = talloc_asprintf_append(mask, buf);874 mask = talloc_asprintf_append(mask, "%s", buf); 875 875 } 876 876 } else { … … 913 913 } 914 914 if ((mask[0] != '\0') && (mask[strlen(mask)-1]!=CLI_DIRSEP_CHAR)) { 915 mask = talloc_asprintf_append(mask, CLI_DIRSEP_STR);915 mask = talloc_asprintf_append(mask, "%s", CLI_DIRSEP_STR); 916 916 if (!mask) { 917 917 return 1; … … 924 924 mask = talloc_strdup(ctx, buf); 925 925 } else { 926 mask = talloc_asprintf_append(mask, buf);926 mask = talloc_asprintf_append(mask, "%s", buf); 927 927 } 928 928 } else { … … 1108 1108 return 1; 1109 1109 } 1110 rname = talloc_asprintf_append(rname, fname);1110 rname = talloc_asprintf_append(rname, "%s", fname); 1111 1111 if (!rname) { 1112 1112 return 1; … … 1267 1267 return 1; 1268 1268 } 1269 rname = talloc_asprintf_append(rname, fname);1269 rname = talloc_asprintf_append(rname, "%s", fname); 1270 1270 if (!rname) { 1271 1271 return 1; … … 1319 1319 } else { 1320 1320 mget_mask = talloc_asprintf_append(mget_mask, 1321 buf);1321 "%s", buf); 1322 1322 } 1323 1323 if (!mget_mask) { … … 1420 1420 return 1; 1421 1421 } 1422 mask = talloc_asprintf_append(mask, buf);1422 mask = talloc_asprintf_append(mask, "%s", buf); 1423 1423 if (!mask) { 1424 1424 return 1; … … 1449 1449 p = strtok_r(ddir, "/\\", &saveptr); 1450 1450 while (p) { 1451 ddir2 = talloc_asprintf_append(ddir2, p);1451 ddir2 = talloc_asprintf_append(ddir2, "%s", p); 1452 1452 if (!ddir2) { 1453 1453 return 1; … … 1456 1456 do_mkdir(ddir2); 1457 1457 } 1458 ddir2 = talloc_asprintf_append(ddir2, CLI_DIRSEP_STR);1458 ddir2 = talloc_asprintf_append(ddir2, "%s", CLI_DIRSEP_STR); 1459 1459 if (!ddir2) { 1460 1460 return 1; … … 1488 1488 return 1; 1489 1489 } 1490 name = talloc_asprintf_append(name, buf);1490 name = talloc_asprintf_append(name, "%s", buf); 1491 1491 if (!name) { 1492 1492 return 1; … … 1572 1572 return 1; 1573 1573 } 1574 name = talloc_asprintf_append(name, buf);1574 name = talloc_asprintf_append(name, "%s", buf); 1575 1575 if (!name) { 1576 1576 return 1; … … 1739 1739 1740 1740 if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { 1741 rname = talloc_asprintf_append(rname, buf);1741 rname = talloc_asprintf_append(rname, "%s", buf); 1742 1742 } else { 1743 rname = talloc_asprintf_append(rname, lname);1743 rname = talloc_asprintf_append(rname, "%s", lname); 1744 1744 } 1745 1745 if (!rname) { … … 2138 2138 return 1; 2139 2139 } 2140 mask = talloc_asprintf_append(mask, buf);2140 mask = talloc_asprintf_append(mask, "%s", buf); 2141 2141 if (!mask) { 2142 2142 return 1; … … 3530 3530 return 1; 3531 3531 } 3532 remote_name = talloc_asprintf_append(remote_name, fname);3532 remote_name = talloc_asprintf_append(remote_name, "%s", fname); 3533 3533 if (!remote_name) { 3534 3534 return 1; … … 3577 3577 if (next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) { 3578 3578 remote_name = talloc_asprintf_append(remote_name, 3579 buf);3579 "%s", buf); 3580 3580 } else { 3581 3581 remote_name = talloc_asprintf_append(remote_name, 3582 local_name);3582 "%s", local_name); 3583 3583 } 3584 3584 if (!remote_name) { … … 4113 4113 return; 4114 4114 } 4115 tmp = talloc_asprintf_append(tmp, f->name);4115 tmp = talloc_asprintf_append(tmp, "%s", f->name); 4116 4116 if (!tmp) { 4117 4117 TALLOC_FREE(ctx); … … 4119 4119 } 4120 4120 if (f->mode & aDIR) { 4121 tmp = talloc_asprintf_append(tmp, CLI_DIRSEP_STR);4121 tmp = talloc_asprintf_append(tmp, "%s", CLI_DIRSEP_STR); 4122 4122 } 4123 4123 if (!tmp) {
Note:
See TracChangeset
for help on using the changeset viewer.