projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0409362
)
PennMUSH 1.8.3p12
author
Rick L Bird
<nveid@yahoo.com>
Sat, 14 May 2011 18:01:51 +0000
(14:01 -0400)
committer
Rick L Bird
<nveid@yahoo.com>
Sat, 14 May 2011 18:01:51 +0000
(14:01 -0400)
Author: talvo@talvo.com <talvo@talvo.com@
ba372814
-4f39-11de-9ad6-
1127a62b9fcd
>
Date: Tue Jan 26 00:21:22 2010 +0000
Fix a minor crashbug in @uptime
Fixes #222
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index e161c3d68dd8f59438a34c095032451c4b4a4a4d..15b639f04d069aad892e4810633a030c069e0a47 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-2166,7
+2166,7
@@
unix_uptime(dbref player __attribute__ ((__unused__)))
return;
}
/* print system uptime */
- for (i = 0; (c = getc(fp)) != '\n'; i++)
+ for (i = 0; (c = getc(fp)) != '\n'
&& c != EOF
; i++)
tbuf1[i] = c;
tbuf1[i] = '\0';
pclose(fp);