Differences From Artifact [9d35a4ce1a]:
- File src/OFFile.m — part of check-in [6d069e2a83] at 2008-12-07 02:59:27 on branch trunk — glibc is broken once again. I guess no other libc is that broken... (user: js, size: 3417) [annotate] [blame] [check-ins using]
To Artifact [44934e3ad8]:
- File
src/OFFile.m
— part of check-in
[70874cf3c5]
at
2008-12-07 03:06:33
on branch trunk
— Remove writeWideCString as that's a bad idea.
Endianess, size etc. may differ from system to system. While this might
be ok when writing files that are only read local again, this is
definitely not ok with sockets. So it's better to remove it from the
OFStream protocol. (user: js, size: 3196) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
10 11 12 13 14 15 16 | */ #import "config.h" #import <stdio.h> #import <string.h> #import <unistd.h> | < | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | */ #import "config.h" #import <stdio.h> #import <string.h> #import <unistd.h> #import <sys/types.h> #import <sys/stat.h> #import "OFFile.h" #import "OFExceptions.h" |
︙ | ︙ | |||
159 160 161 162 163 164 165 | fromBuffer: buf]; } - (size_t)writeCString: (const char*)str { return [self writeNItems: strlen(str) ofSize: 1 | < < < < < < < | 158 159 160 161 162 163 164 165 166 167 | fromBuffer: buf]; } - (size_t)writeCString: (const char*)str { return [self writeNItems: strlen(str) ofSize: 1 fromBuffer: (const uint8_t*)str]; } @end |