git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libpsocket - Add MSG_* values for send/recv
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libnet.so_src
/
socket.c
diff --git
a/Usermode/Libraries/libnet.so_src/socket.c
b/Usermode/Libraries/libnet.so_src/socket.c
index
f5933f2
..
85f7e54
100644
(file)
--- a/
Usermode/Libraries/libnet.so_src/socket.c
+++ b/
Usermode/Libraries/libnet.so_src/socket.c
@@
-22,17
+22,17
@@
int Net_OpenSocket(int AddrType, void *Addr, const char *Filename)
if(Filename)
{
if(Filename)
{
- int len = snprintf(NULL,
10
0, "/Devices/ip/routes/@%i:%s/%s", AddrType, hexAddr, Filename);
+ int len = snprintf(NULL, 0, "/Devices/ip/routes/@%i:%s/%s", AddrType, hexAddr, Filename);
char path[len+1];
char path[len+1];
- snprintf(path,
100
, "/Devices/ip/routes/@%i:%s/%s", AddrType, hexAddr, Filename);
+ snprintf(path,
len+1
, "/Devices/ip/routes/@%i:%s/%s", AddrType, hexAddr, Filename);
_SysDebug("%s", path);
return _SysOpen(path, OPENFLAG_READ|OPENFLAG_WRITE);
}
else
{
_SysDebug("%s", path);
return _SysOpen(path, OPENFLAG_READ|OPENFLAG_WRITE);
}
else
{
- int len = snprintf(NULL,
10
0, "/Devices/ip/routes/@%i:%s", AddrType, hexAddr);
+ int len = snprintf(NULL, 0, "/Devices/ip/routes/@%i:%s", AddrType, hexAddr);
char path[len+1];
char path[len+1];
- snprintf(path,
100
, "/Devices/ip/routes/@%i:%s", AddrType, hexAddr);
+ snprintf(path,
len+1
, "/Devices/ip/routes/@%i:%s", AddrType, hexAddr);
return _SysOpen(path, OPENFLAG_READ);
}
}
return _SysOpen(path, OPENFLAG_READ);
}
}
UCC
git Repository :: git.ucc.asn.au