diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/fakemail.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index 1deeec352b2..73898c6fb87 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c | |||
| @@ -61,6 +61,11 @@ main () | |||
| 61 | #include <ctype.h> | 61 | #include <ctype.h> |
| 62 | #include <time.h> | 62 | #include <time.h> |
| 63 | #include <pwd.h> | 63 | #include <pwd.h> |
| 64 | |||
| 65 | /* This is to declare cuserid. */ | ||
| 66 | #ifdef HAVE_UNISTD_H | ||
| 67 | #include <unistd.h> | ||
| 68 | #endif | ||
| 64 | 69 | ||
| 65 | /* Type definitions */ | 70 | /* Type definitions */ |
| 66 | 71 | ||
| @@ -368,9 +373,9 @@ make_file_preface () | |||
| 368 | user_length = strlen (temp); | 373 | user_length = strlen (temp); |
| 369 | the_user = alloc_string (user_length + 1); | 374 | the_user = alloc_string (user_length + 1); |
| 370 | strcpy (the_user, temp); | 375 | strcpy (the_user, temp); |
| 371 | the_string = alloc_string (3 + prefix_length + | 376 | the_string = alloc_string (3 + prefix_length |
| 372 | user_length + | 377 | + user_length |
| 373 | date_length); | 378 | + date_length); |
| 374 | temp = the_string; | 379 | temp = the_string; |
| 375 | strcpy (temp, FROM_PREFIX); | 380 | strcpy (temp, FROM_PREFIX); |
| 376 | temp = &temp[prefix_length]; | 381 | temp = &temp[prefix_length]; |