소스 검색

* Stringize the hash format

Bryan Drewery 17 년 전
부모
커밋
07a3c860be
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/mod/irc.mod/irc.c

+ 2 - 2
src/mod/irc.mod/irc.c

@@ -371,7 +371,7 @@ void makecookie(char *out, size_t len, const char *chname, const memberlist* opp
   char key[150] = "";
   const char salt1[] = SALT1;
   const char salt2[] = SALT2;
-  simple_snprintf2(key, sizeof(key), "%c%c%c%s%c%c%c%c%c%c%^s%c%c%c%c%c%c%c%s",
+  simple_snprintf2(key, sizeof(key), STR("%c%c%c%s%c%c%c%c%c%c%^s%c%c%c%c%c%c%c%s"),
                                         randstring[0],
                                         salt1[5],
                                         randstring[3],
@@ -455,7 +455,7 @@ static int checkcookie(const char *chname, const memberlist* opper, const member
   char key[150] = "";
   const char salt1[] = SALT1;
   const char salt2[] = SALT2;
-  simple_snprintf2(key, sizeof(key), "%c%c%c%s%c%c%c%c%c%c%^s%c%c%c%c%c%c%c%s",
+  simple_snprintf2(key, sizeof(key), STR("%c%c%c%s%c%c%c%c%c%c%^s%c%c%c%c%c%c%c%s"),
                                         cookie[SALT(0)],
                                         salt1[5],
                                         cookie[SALT(3)],