ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/modules/workwizu workwizu.c,1.34,1.35


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/workwizu workwizu.c,1.34,1.35
Date: Tue, 25 Mar 2003 18:32:55 -0500

Update of /cvsroot/ayttm/ayttm/modules/workwizu
In directory subversions:/tmp/cvs-serv18191

Modified Files:
        workwizu.c 
Log Message:
same for workwizu


Index: workwizu.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/workwizu/workwizu.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- workwizu.c  24 Mar 2003 13:44:52 -0000      1.34
+++ workwizu.c  25 Mar 2003 23:32:53 -0000      1.35
@@ -448,7 +448,7 @@
                                eb_workwizu_logout(account);
                                return;
                        }
-                       strcpy(my_user->challenge,line);
+                       strncpy(my_user->challenge,line, 
sizeof(my_user->challenge));
                        free(line);
                        eb_debug(DBG_WWZ,"read challenge 
%s\n",my_user->challenge);
                        workwizu_answer_challenge(sock);
@@ -648,8 +648,8 @@
        
        account->connecting = 1;
        my_user = g_new0(wwz_user, 1);
-       strcpy(my_user->username, account->handle);
-       strcpy(my_user->password, wad->password);
+       strncpy(my_user->username, account->handle, sizeof(my_user->username));
+       strncpy(my_user->password, wad->password, sizeof(my_user->password));
 
        my_user->typing_handler = -1;
        





reply via email to

[Prev in Thread] Current Thread [Next in Thread]