diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/authutil.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/authutil.c b/src/authutil.c index 4a4af12..04c0791 100644 --- a/src/authutil.c +++ b/src/authutil.c @@ -469,13 +469,7 @@ write_string (FILE *file, const char *string) if (count > USHRT_MAX) return (0); - if (!write_short (file, (unsigned short) count)) - return (0); - - if (fwrite (string, sizeof (char), count, file) != count) - return (0); - - return (1); + return write_counted_string (file, (unsigned short) count, string); } |