All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [patch] wireless: char* -> char[] conversion in airo.c
@ 2005-06-04 15:06 Domen Puncer
  2005-06-04 16:05 ` Alexey Dobriyan
  2005-06-04 16:38 ` randy_dunlap
  0 siblings, 2 replies; 3+ messages in thread
From: Domen Puncer @ 2005-06-04 15:06 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

This conversion makes code from line 7101 right:
	if (copy_to_user(com.data, swversion, sizeof(swversion)))

size output (before, after):
  55416    2228     160   57804    e1cc drivers/net/wireless/airo.o
  55412    2228     160   57800    e1c8 drivers/net/wireless/airo.o


Signed-off-by: Domen Puncer <domen@coderock.org>

diff -pruNX dontdiff c/drivers/net/wireless/airo.c a/drivers/net/wireless/airo.c
--- c/drivers/net/wireless/airo.c	2005-05-25 13:34:49.000000000 +0200
+++ a/drivers/net/wireless/airo.c	2005-06-04 15:49:10.000000000 +0200
@@ -900,7 +900,7 @@ typedef struct aironet_ioctl {
 	unsigned char __user *data;	// d-data
 } aironet_ioctl;
 
-static char *swversion = "2.1";
+static char swversion[] = "2.1";
 #endif /* CISCO_EXT */
 
 #define NUM_MODULES       2

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-04 16:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-04 15:06 [KJ] [patch] wireless: char* -> char[] conversion in airo.c Domen Puncer
2005-06-04 16:05 ` Alexey Dobriyan
2005-06-04 16:38 ` randy_dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.