All pastes #343486 Raw Edit

Untitled

public text v1 · immutable
·published 2007-02-07 01:59 UTC
rendered paste body
	copy_from_user(result,str,strlen(str)
	ret = printk("%s", result);

	/*no null terminator character*/
	if (result[strlen(str)] != '\0')
	{
	  if(strlen(result) < 25)
	  {
	    strcat(result,"\0");
	  }
	}