Changeset a2ad36166780d4001768d1e8bead80f058ce072f
- Timestamp:
- 06/09/09 14:11:47
(4 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1244556707 +0000
- git-parent:
[43db6fd05a8814ba23c94d2dcc0388ca23393e10]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1244556707 +0000
- Message:
closes #143
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r04662ba |
ra2ad361 |
|
| 1327 | 1327 | txt += len; |
|---|
| 1328 | 1328 | |
|---|
| 1329 | | temp = malloc(strlen(pass->pw_dir) + 1 + strlen(txt) + 1); |
|---|
| 1330 | | (void) sprintf(temp, "%s/%s", pass->pw_dir, txt); |
|---|
| | 1329 | /* Reuse len to use snprintf */ |
|---|
| | 1330 | len = strlen(pass->pw_dir) + 1 + strlen(txt) + 1; |
|---|
| | 1331 | temp = malloc(len); |
|---|
| | 1332 | (void) snprintf(temp, len, "%s/%s", pass->pw_dir, txt); |
|---|
| 1331 | 1333 | |
|---|
| 1332 | 1334 | return (temp); |
|---|
| … | … | |
| 1415 | 1417 | ((dirname) ? strlen(dirname) : 0) + 1 + 1; |
|---|
| 1416 | 1418 | temp = malloc(len); |
|---|
| 1417 | | (void) sprintf(temp, "%s%s", |
|---|
| | 1419 | (void) snprintf(temp, len, "%s%s", |
|---|
| 1418 | 1420 | dirname ? dirname : "", entry->d_name); /* safe */ |
|---|
| 1419 | 1421 | |
|---|