]> code.citadel.org Git - citadel.git/commitdiff
* room_ops.c: fix improper null-termination bug I introduced
authorNathan Bryant <loanshark@uncensored.citadel.org>
Wed, 21 Oct 1998 05:00:13 +0000 (05:00 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Wed, 21 Oct 1998 05:00:13 +0000 (05:00 +0000)
citadel/ChangeLog
citadel/room_ops.c

index 059884b63be93a4740b9d6c894069ef1fd2098cd..cceec5badd18d8578d6b96f2e15ddc5c3cf8c545 100644 (file)
@@ -1,6 +1,7 @@
 1998-10-20 Nathan Bryant <bryant@cs.usm.maine.edu>
        * Makefile.tmpl: fix to build client with old Configure script
        * configure.in: autologin defaults to enabled if crypt() is available
+       * room_ops.c: fix improper null-termination bug I introduced
 
 Mon Oct 19 20:52:55 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Client ability to force display of prompts in Mail rooms, even when
index ad1f32c875ac01c2c1be9fab53c4e3c4ad974437..5a2a317c9b431e0f4870b2164e65479644715787 100644 (file)
@@ -114,7 +114,7 @@ int getroom(struct quickroom *qrbuf, char *room_name)
        for (a=0; room_name[a] && a < sizeof lowercase_name - 1; ++a) {
                lowercase_name[a] = tolower(room_name[a]);
                }
-       lowercase_name[sizeof lowercase_name - 1] = 0;
+       lowercase_name[a] = 0;
 
        memset(qrbuf, 0, sizeof(struct quickroom));
        cdbqr = cdb_fetch(CDB_QUICKROOM,